This extension provides comprehensive support for the Lrama parser generator in Visual Studio Code.
It offers syntax highlighting, convenient snippets, and advanced IntelliSense features powered by the Language Server Protocol (LSP) to enhance your Lrama development workflow.
Features
Syntax Highlighting
Accurately highlights Lrama grammar, including directives, rules, action blocks, and comments, to improve code readability.
Snippets
A rich set of snippets is available for quickly scaffolding common Lrama constructs.
For instance, typing lrama-template generates a complete grammar file template. Other snippets like token, rule, and union are also available to streamline declarations.
IntelliSense (Language Server Features)
A dedicated language server analyzes your code to provide intelligent features.
Go to Definition
Jump directly to the location where a symbol, such as a rule or token, is defined (F12).
Find All References
Find all occurrences of a symbol throughout your file.
Document Symbols
Get a complete outline of your grammar file in the Explorer, showing all rule definitions for quick navigation.
Diagnostics
The server identifies potential issues in your code, such as references to undefined symbols or rules that are defined but never used.