lex_lua 0.2.0

A lexer for Lua
Documentation
1
2
3
4
5
6
7
8
9
use lex_lua::Lexer;

fn main() {
    let bytes = include_bytes!("./readme.lua");
    let l = Lexer::new(bytes);
    for (i, token) in l.enumerate() {
        println!("{}: {:?}", i, token);
    }
}