Grammar Well

Home Documentation Editor View the Source Install the Package

API Overview

Grammar Well provides a programmatic API for working with grammars and parsing text. The API is typically used in two stages:

  • Generating a Parser from a Grammar
  • Parsing Input Text with the Generated Parser

Table of Contents

Main
  • API
    • Generating Parsers
    • Parsing Inputs
  • Writing Grammars
    • Imports
    • Lifecycle Hooks
    • Lexer
      • Imports
      • Matches
      • Directives
      • Spans
    • Grammar
      • Rules
      • Symbols
      • Post Processors
  • Glossary