mgreminger / js_antlr4_book

Examples and test rig from the ANTLR4 book implemented using the ANTLR4 JavaScript runtime.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

js_antlr4_book

I'm working through some of the The Definitive ANTLR4 Reference [1] book examples using the JavaScript ANTLR4 runtime instead of the Java runtime. Note that the original example source code (all of the non .js and non .html files) was obtained from the ANTLR4 book website and is covered by its own copyright.

[1] Parr, Terence. "The definitive ANTLR 4 reference." The Pragmatic Programmers (2013).

grun.js

The grun test rig referenced in the book has been partially reimplemented in JavaScript as grun.js. The output of the -gui option of grun.js applied to the CSV example from Section 6.1 of the book is shown below. grun.js tree rendering

About

Examples and test rig from the ANTLR4 book implemented using the ANTLR4 JavaScript runtime.


Languages

Language:Java 50.3%Language:ANTLR 37.4%Language:JavaScript 8.8%Language:HTML 1.1%Language:C 0.9%Language:Python 0.7%Language:C++ 0.4%Language:Batchfile 0.2%Language:GAP 0.1%Language:Shell 0.0%