Skip to content
| Marketplace
Sign in
Visual Studio>Tools>.Gram language support
.Gram language support

.Gram language support

.Gram

|
1 install
| (0) | Free
Visual Studio language support for .Gram parser grammars.
Download

.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

  • Project and installation
  • Language syntax
  • Documentation
  • Report an issue
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft