Skip to content

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Grammar Analyzer

Build Status

A simple grammar analyzer written in Python.

Usage:

./analyze.py <path to grammar json> <input string>

Examples:

./analyze.py grammars/grammar1.json "a#b"
./analyze.py grammars/grammar1.json ""

Grammar Formatting

  1. All rules in the grammar must have a terminal as the first symbol on the right hand side of the rule.

  2. No variable in the grammar can have two rules with the same terminal as the first symbol on the right hand side.

About

A simple grammar analyzer implemented in Python.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages