Skip to content

KokorinIlya/parser-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

val gen = new Generator(
  pathToGrammar,
  pathToDirectoryForCode
)
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