tag 0.0.7
This commit is contained in:
parent
18cbe2a8ab
commit
f769a2ec1d
@ -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
2
Cargo.lock
generated
@ -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",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "thp"
|
name = "thp"
|
||||||
version = "0.0.6"
|
version = "0.0.7"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
|
||||||
|
@ -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,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ block = "{", (statement, (new line, statement)*)?, "}"
|
|||||||
### Statement
|
### Statement
|
||||||
|
|
||||||
```ebnf
|
```ebnf
|
||||||
statement = function call
|
statement = function call | binding
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user