Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pditommaso/antlr-hello

Classic Hello world example for ANTLR4 grammar parser
https://github.com/pditommaso/antlr-hello

Last synced: 21 days ago
JSON representation

Classic Hello world example for ANTLR4 grammar parser

Awesome Lists containing this project

README

        

ANTLR4 Hello world
==================

Classic *Hello world* example for an ANTLR4 grammar parser.

Get started
------------

Use the following command to compile and run the example

```
./gradlew run
```

Relevant files
--------------

* `Hello.g4`: grammar definition
* `test.txt`: simple input file
* `src/main/Hello.java`: parser launcher class
* `src/antlr4`: generate lexer and parser classes