Trying out peg
This commit is contained in:
parent
8a9c63eccf
commit
4c1ee0a34e
|
@ -14,6 +14,7 @@ derivative = "1.0.3"
|
|||
colored = "1.8"
|
||||
radix_trie = "0.1.5"
|
||||
assert_matches = "1.5"
|
||||
peg = "0.7.0"
|
||||
|
||||
schala-lang-codegen = { path = "../codegen" }
|
||||
schala-repl = { path = "../../schala-repl" }
|
||||
|
|
|
@ -169,6 +169,7 @@
|
|||
//! module := 'module' IDENTIFIER '{' statement* '}'
|
||||
//! ```
|
||||
mod test;
|
||||
mod new;
|
||||
|
||||
use std::rc::Rc;
|
||||
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
use crate::ast::*;
|
||||
|
||||
peg::parser! {
|
||||
grammar yolo() for str {
|
||||
rule number() ->
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue