A peekable lexer

Use the chars() iterator on &str, with the Peekable wrapper on Iterators, to iterate the input, rather than needing to hold the whole input and do iteration by indexes.
This commit is contained in:
Eryn Wells 2017-04-30 17:46:42 -07:00
parent a4282e7760
commit c5b769ff45
3 changed files with 93 additions and 1 deletions

View file

@ -4,4 +4,3 @@ version = "0.1.0"
authors = ["Eryn Wells <eryn@erynwells.me>"]
[dependencies]
sibiltypes = { path = "../types" }