summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2017-11-03 23:37:17 -0400
committerDavid Li <li.davidm96@gmail.com>2017-11-03 23:37:37 -0400
commitd5b0224a398810a2e34713d72c6710f4f54df420 (patch)
treef56bf6cd72292bfab30f2bcd75e41c921fe089fd /src/main.rs
parent169870428a9074d2429e6ec3dac64e84bb0392e3 (diff)
Switch to lalrpop for parsing/lexing
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/main.rs b/src/main.rs
index 5e071b0..5b343ec 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,13 +1,6 @@
-#[macro_use] extern crate lazy_static;
-extern crate regex;
-
-pub mod lexer;
+pub mod ast;
+pub mod taiga;
fn main() {
- println!("Hello, world!");
- let s = "let x = 5 in x end end ";
- let lex = lexer::Lexer::new(s);
- for token in lex {
- println!("{:?}", token);
- }
+ println!("{:?}", taiga::parse_Program("5"));
}