Skip to content

A lexer/scanner for the LOX programming language, written in Rust.

Notifications You must be signed in to change notification settings

ragizaki/rust-lexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Lexer

A lexer/scanner for the LOX programming language, written in Rust. This scanner uses a traditional approach of keeping track of the current position and token, and peeks at next characters until we reach the end of file, in which case we are done.

TODO

  • Replace String with &str where it makes sense to optimize performance and clarify ownership of variables
  • Build out lexer to scan .lox files and output corresponding tags (e.g. LEFT_PAREN ( null).
  • Handle reserved keywords and identifiers
  • Build abstract syntax tree (AST) from the scanned tokens

About

A lexer/scanner for the LOX programming language, written in Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages