ANTLR4
(mos's homepage)


I've been teaching a compilers course at University of Aveiro since 2015. When I became responsible for it, one of the modifications made was a change from yacc/lex (bison/flex) compiler tools to antlr (which I use since my PhD thesis). Also a stronger engineering approach was taken increasing the focus on practical aspects of programming languages and symbolic programming.

During these years I've been developing several bash scripts to ease ANTLR4 programming (particularly on boring repetitive issues such as creating a main source code class for parsing of a given grammar, including support for parse tree iterations with visitors and/or listeners).

These scripts support: Java (default), C++ and Python3 antlr4 language targets.

An Eiffel grammar was recently developed (based on ECMA 367 [2ed] standard, on online documentation and inferred from source code provided by ISE Eiffel and Gobo Eiffel).


(mos at ua.pt) University of Aveiro, DETI/IEETA