Antlr4 Cpp Example Save

Example of Antlr4 C++ Target

Project README

CI

Antlr4 C++ Example

A simple example of using Antlr4 to generate a C++ Parser / Lexer, for Modelica. The Modelica grammar for Antlr4 is from here.

To run the example, simply run ./run.sh or make

The example presumes that the java executable is on your path.

The output includes

modelicaLexer.*: Antlr4 Lexer for Modelica

modelicaParser.*: Antlr4 Parser for Modelica

modelicaListener.*: Antlr4 Listener implementation for Modelica

Note that the Listener classes are optional: not every application of Antlr4 requires a listener.

Open Source Agenda is not affiliated with "Antlr4 Cpp Example" Project. README Source: teverett/antlr4-cpp-example
Stars
40
Open Issues
1
Last Commit
4 years ago
Tags

Open Source Agenda Badge

Open Source Agenda Rating