summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 5e071b0ae58a4f862d8a4411e5b1887285fa2c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#[macro_use] extern crate lazy_static;
extern crate regex;

pub mod lexer;

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);
    }
}