Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/justinfernald/cfg-js


https://github.com/justinfernald/cfg-js

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

# CFG parser

This is a context free grammar such that you can define grammars and then pass inputs to test to see if a input is in the grammar. This is done using the Earley algorithm.

Feature not fully implemented in handling of epsilons as it works for some scenarios.

This code can be modified to show a parse tree which I might do later.