Skip to content

lingxz/poetrygen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A generator for context free grammar

  • currently does not take into account repeated definitions, the second one will override the first.

Usage

Takes a grammar file (examples see grammars folders)

Generating the grammar.py file

python gen.py -g grammars/poetry-ch.gram

Running the flask server

python main.py