Trying out peg

This commit is contained in:
Greg Shuflin 2021-11-03 16:27:42 -07:00
parent 8a9c63eccf
commit 4c1ee0a34e
3 changed files with 10 additions and 0 deletions

View File

@ -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" }

View File

@ -169,6 +169,7 @@
//! module := 'module' IDENTIFIER '{' statement* '}'
//! ```
mod test;
mod new;
use std::rc::Rc;

View File

@ -0,0 +1,8 @@
use crate::ast::*;
peg::parser! {
grammar yolo() for str {
rule number() ->
}
}