Skip to content

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

Notifications You must be signed in to change notification settings

mgreminger/js_antlr4_book

Repository files navigation

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.

Resources

Stars

Watchers

Forks