tag 0.0.7

master
Araozu 2023-10-05 06:56:21 -05:00
parent 18cbe2a8ab
commit f769a2ec1d
6 changed files with 10 additions and 7 deletions

View File

@ -2,6 +2,8 @@
## TODO ## TODO
- Parse multiple statements
- Parse binary operators
- Parse more complex bindings - Parse more complex bindings
- Parse block of code - Parse block of code
- Watch mode - Watch mode
@ -17,6 +19,8 @@
## v0.0.7 ## v0.0.7
- Parse minimal function declarations following a grammar - Parse minimal function declarations following a grammar
- Parse function call, binding as statement
- Parse a statement as body of a function declaration
## v0.0.6 ## v0.0.6

2
Cargo.lock generated
View File

@ -254,7 +254,7 @@ dependencies = [
[[package]] [[package]]
name = "thp" name = "thp"
version = "0.0.6" version = "0.0.7"
dependencies = [ dependencies = [
"clap", "clap",
"colored", "colored",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "thp" name = "thp"
version = "0.0.6" version = "0.0.7"
edition = "2021" edition = "2021"

View File

@ -32,12 +32,11 @@ enum Commands {
R {}, R {},
} }
const VERSION: &str = "0.0.6";
fn get_copyright() -> String { fn get_copyright() -> String {
let crate_version = env!("CARGO_PKG_VERSION");
format!( format!(
"THP {}\nCopyright (c) 2023 Fernando Enrique Araoz Morales\n", "THP {}\nCopyright (c) 2023 Fernando Enrique Araoz Morales\n",
VERSION, crate_version,
) )
} }

View File

@ -45,7 +45,7 @@ block = "{", (statement, (new line, statement)*)?, "}"
### Statement ### Statement
```ebnf ```ebnf
statement = function call statement = function call | binding
``` ```

View File

@ -5,8 +5,8 @@ mod block;
mod expression; mod expression;
mod functions; mod functions;
mod params_list; mod params_list;
mod statement;
mod utils; mod utils;
mod statement;
pub mod ast; pub mod ast;