Skip to content

An attempt at making a lexical + syntax analyzer in Rust

License

Notifications You must be signed in to change notification settings

Nanotwerp/Lokolyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lokolyzer

An attempt at making a lexical + syntax analyzer in Rust

In its final form, this analyzer will be able to do the operations of addition, subtraction, multiplication, division, and modulus; this is in addition to being able to assign and compare variables.

Grammar: -> '$'<stmt_list>'?' <stmt_list -> ';' {';'}

stmt -> <int_declaration> -> "rst" <short_declaration -> "rort" -> "rong" -> <int_declaration> | <short_declaration> | <long_declaration> 'id' ';'

-> '{' { ;} '}' -> 'id' '=' <expr ';' -> {('/'|'*'|'%') } -> {('+'|'-') } factor -> 'id' | 'int_lit' | '('')'

-> {('<'|'>'|'~'|'^') } -> {('+'|'-') } <bfactor -> 'id' | 'int_lit' | '('')'

About

An attempt at making a lexical + syntax analyzer in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages