.Gram language support
Visual Studio tooling for .Gram, a source generator that compiles grammars into strongly typed C# parsers.
Write grammars in standalone .gram files or inside C# [Gram] attributes.
Editor features
- Theme-aware syntax highlighting and live diagnostics
- Completion, signature help, and Quick Info
- Brace matching, folding, and alphabetical rule navigation
- Go To Definition, Find All References, reference highlighting, and Rename
- Navigation between grammar declarations and generated C# symbols
- Embedded DSL highlighting through
StringSyntax
- Background analysis for large grammar files
Example
[Gram("""
Number : @int = digits: ['0'..'9']+ => @(int.Parse(digits))
parse Number as ParseNumber
""")]
public static partial class Numbers;
Links
| |