Chevrotain
Home
Features
Tutorial
Guide
FAQ
Changes
APIs
Playground
Benchmark
Discussions
GitHub
Home
Features
Tutorial
Guide
FAQ
Changes
APIs
Playground
Benchmark
Discussions
GitHub
  • Features

    • Blazing Fast
    • LL(K) Grammars
    • Separation of Grammar and Semantics
    • Easy Debugging
    • Fault Tolerance
    • Multiple Start Rules
    • Customizable Error Messages
    • Parameterized Rules
    • Gates
    • Syntactic Content Assist
    • Grammar Inheritance
    • Backtracking
    • Syntax Diagrams
    • RegExp Based Lexers
    • Position Tracking
    • Token Alternative Matches
    • Token Skipping
    • Token Categories
    • Token Grouping
    • Custom Token Patterns
    • Lexer Modes

Multiple Start Rules

Chevrotain supports using any of the grammar rules as a starting rule. This means that any subset of a language can be parsed without being wrapped in other constructs, For example this can be used for:

  • Implementing "debugger watch expressions" and "evaluate expression" in an IDE.
  • Parsing only modified text in an IDE for performance.
  • Easy unit testing for small language snippets.

See executable example for further details.

Edit this page on GitHub
Last Updated: 2/28/21, 11:53 PM
Contributors: Shahar Soel, bd82
Prev
Fault Tolerance
Next
Customizable Error Messages