/LL1-parser

:pencil2: Web-application for parsing custom language into context-free grammar with error detecting.

Primary LanguageJavaScriptMIT LicenseMIT

LL1 Parser

Build Status codecov

This project associated with 2110316 Programming Language study class.

LL1 Parser is web-application that parse custom language into context-free grammar with error detecting.

The project aiming for convert the LL1 context-free grammars to First Set, Follow Set and Parsing table, and scanner for parsing the given tokens to following grammar to check, is it the tokens correct. Follows by the LL1 Parser algorithm

Demo

👉 https://neungkl.github.io/LL1-parser/

Features

  • Included 3 examples.
  • Check if the grammar is correct.
  • Convert LL1 grammar to First Set, Follow Set, and Parsing Table
  • Parser provided with error checking functional.
  • Grammar tree provided.

Usage

Build The Project

Run following command.

npm install -g mocha grunt
npm install
npm run-script build

Then, open index.html

Testing

# Basic test
npm run-script test

# With coverage report
npm run-script test-cov

License

MIT © Kosate Limpongsa