diff --git a/Cargo.lock b/Cargo.lock index 4f91eaa..3883970 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,14 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "drake" +version = "0.0.1" +dependencies = [ + "indoc", + "peg", +] + [[package]] name = "indoc" version = "1.0.3" @@ -67,11 +75,3 @@ name = "unindent" version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f14ee04d9415b52b3aeab06258a3f07093182b88ba0f9b8d203f211a7a7d41c7" - -[[package]] -name = "walnut" -version = "0.1.0" -dependencies = [ - "indoc", - "peg", -] diff --git a/Cargo.toml b/Cargo.toml index b19291c..3bb3f34 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "walnut" -version = "0.1.0" -description = "The Walnut Configuration Language" +name = "drake" +version = "0.0.1" +description = "The Drake Configuration Language" authors = ["watcol "] -repository = "https://github.com/watcol/walnut" +repository = "https://github.com/watcol/drake" categories = ["parser-implementations", "compilers"] license = "MIT" readme = "README.md" diff --git a/README.md b/README.md index 86fc235..e71a1d4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# Walnut -Walnut is a simple, programmable, and human-readable, configuration +# Drake +Drake is a simple, programmable, and human-readable, configuration language. ## Features @@ -17,4 +17,4 @@ The language references are available [here](./docs/language.md) *Comming soon...* ## License -Walnut is licensed under the MIT license. See [LICENSE](./LICENSE). +Drake is licensed under the MIT license. See [LICENSE](./LICENSE). diff --git a/docs/language.md b/docs/language.md index d8061b7..a5b2fd8 100644 --- a/docs/language.md +++ b/docs/language.md @@ -1,22 +1,22 @@ -# Walnut v0.0.1-pre +# Drake v0.0.1-pre -This book is the reference for the Walnut configuration language, describes +This book is the reference for the Drake Configuration Language, describes syntax and semantics. ## File Format -- A Walnut file must be encoded in UTF-8. -- A Walnut file is described as an sequence of [statements](#statement), and +- A file must be encoded in UTF-8. +- A file is described as an sequence of [statements](#statement), and expresses a [table](#table) by [rendering](#terms). -- A Walnut file should use the extension `.wal`. -- The appropriate MIME type for Walnut files is `application/walnut`. +- A file should use the extension `.drake`. +- The appropriate MIME type for drake files is `application/drake`. ### Supported File Types -Walnut files can be transpiled to these file types: +Drake files can be transpiled to these file types: *Comming soon...* ## Statement -Statement is a base unit of Walnut, categorized into these types: +Statement is a base unit of Drake, categorized into these types: - [Value Binding](#value-binding) - [Table Header](#table-header) - [Function Definition](#function-definition) @@ -113,7 +113,7 @@ bar = "baz" # Overwriting a value. baz = 1 # Appending a value. # It is useful when overwriting an imported table. -[dependencies] import("dependencies.wal") +[dependencies] import("dependencies.drake") ``` #### Array of Tables @@ -541,8 +541,7 @@ key = "foo" carriage returns or comments. - "Parenthesis" means left and right of round brackets (`()`), curly brackets (`{}`), or square brackets (`[]`). -- "Render" means processing and converting the walnut file to other data - notations. +- "Render" means processing and converting the file to other data notations. ## ABNF Grammar *Comming soon...*