Skip to content

xilec/RustParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RustParser

Rust parser written with Nitra

Released parsing

  • Boolean, integer, float, char and string literals
  • Bitwise, conditional and arithmetic operations
  • Non-generic free functions declarations
  • Basic control blocks: if, loop, while, for, break and contiue
  • let and unit statements
  • Single and multiline commets
  • Keywords
  • Extern crate declarations
  • Use declarations

Building

Syntax highlighting

  • Build RustParser project
  • Copy library RustParser.dll into Nitra setup folder (by default: %ProgramFiles(x86)%/JetBrains/Nitra)
  • Edit file NitraGlobalConfig.xml
    <Language Name="Rust" FileExtensions=".rs" Grammar="RustParser.RustGrammar" StartRule="CompilationUnit">
    	<Module>$NitraPath\RustParser.dll</Module>
    </Language>
  • Restart Visual Studio and have fun!

About

Rust parser written with Nitra

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published