GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - teverett/antlr4-cpp-example: Example of Antlr4 C++ Target

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
runtime-osx
runtime-osx
 
 
.gitignore
.gitignore
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
antlr-4.7-complete.jar
antlr-4.7-complete.jar
 
 
example2.png
example2.png
 
 
example2.txt
example2.txt
 
 
hello.cpp
hello.cpp
 
 
modelica.g4
modelica.g4
 
 
run.sh
run.sh
 
 

Repository files navigation

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.

About

Example of Antlr4 C++ Target

Topics

antlr4

Resources

Readme
Activity

Stars

39 stars

Watchers

5 watching

Forks

12 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.