Forlog is a script language to define and process grammars.
The name Forlog comes from the old norse word forlǫg, which stands for fate or destiny.
MANUAL
The parser is written in Javascript an can be found on github alongside an introduction to the grammar syntax as well as the API.
You could also just load one of those examples and figure the grammar syntax out yourself: