项目作者: KokorinIlya

项目描述 :
Simple parser and lexer generator for LL(1) grammars
高级语言: Scala
项目地址: git://github.com/KokorinIlya/parser-generator.git
创建时间: 2018-12-03T21:58:09Z
项目社区:https://github.com/KokorinIlya/parser-generator

开源协议:

下载


parser-generator

Simple parser and lexer generator for LL(1) grammars

Table of contents

Lexer and parser generation

To create lexer and parser, run the following code.

  1. val gen = new Generator(
  2. pathToGrammar,
  3. pathToDirectoryForCode
  4. )
  5. gen.generate()

Where pathToGrammar is a path to file with grammar description (see Grammar description section for details), and pathToDirectoryForCode is a path do directory, where generated code (lexer, parser and tokens description) will be placed.

Grammar description

TODO