Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>GrammarOutlineLangNew to Visual Studio Code? Get it now.
GrammarOutlineLang

GrammarOutlineLang

hunter g

|
200 installs
| (0) | Free
An outline language designed to specify the grammar of another computer-language
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GROL

Grammar Outline Language

Written by Hunter Garza (hunterg) in JSON

Expression Element

Defining an Expression Element

expression_elem: "PURPOSE"

Defining Expression Elements

expression_elem: [
    "PURPOSE_1",
    "PURPOSE_2",
    ...,
]

Visual Studio Code

Snippets

Traditional Arithmetic Structure

  • prefix: grArithTraditional

  • body: [

    "expr (expression) : "term ((PLUS (+)|MINUS (-)) term)*"", "term : "factor ((MUL (*)|DIV (/)) factor)*"", "factor : [\n "INT|FLOAT",\n "(PLUS (+)|MINUS (-)) factor",\n "LPAREN expr RPAREN"\n]"

]

  • description: Grammar for +, -, *, /
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft