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

    • Introduction
    • Lexer
    • Parser
    • Semantics
    • Semantics - CST Visitor
    • Semantics - Embedded
    • Fault Tolerance

Introduction

Installation

yarn add chevrotain
# OR
npm install chevrotain

Scenario

In this tutorial we will implement a parser for a simplified SQL syntax which will contain only SELECT statements. The output of the parser will be an Abstract Syntax Tree (AST).

Running & Debugging

The code snippets in this tutorial steps are part of an executable and debuggable example. It is recommended to use these sources either as an initial template or as an executable example in order to gain a deeper understanding.

Samples Syntax

This tutorial uses ES2015+ syntax. See examples of how to use Chevrotain with other implementation languages.

Edit this page on GitHub
Last Updated: 6/27/22, 12:27 AM
Contributors: Shahar Soel, Itamar Levin, bd82
Next
Lexer