Skip to content

jackmott/rust-lexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A port of Rob Pike's Go lexer to Rust

Rob Pike has an excellent video showing how to write a nice lexical scanner in golang: https://www.youtube.com/watch?v=HxaD_trXwRE This is a port of that approach to Rust. This is just a sample binary you can play with, not meant as a general purpose library. The lexer sends tokens on a channel so that a parser could consume them from a separate thread. No string allocations are made, tokens refer to slices of the original input string.

About

A port of Rob Pike's Go lexer to Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages