Ronney31 / Antlr4-Basic

This is antlr4 mathExpression parsing project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Antlr4-Basic

This is antlr4 mathExpression parsing project.

To run the project please follow below steps.

Open command prompt type

1. To move to 'Math Expression' Directory.

cd Math Expression

2. To parse your build grammar 'mathExp.g4' and fead as input to antlr4.

antlr4 mathExp.g4

3. To compile all the java files created by step.

javac mathExp.*java

4. To parse and run the mathematical expression wrote in input.txt as input to our project.

grun mathExp start input.txt

5. To parse and run and view as graphical tree of our input.

grun mathExp start input.txt -gui

alt text

alt text

About

This is antlr4 mathExpression parsing project.

License:MIT License


Languages

Language:Java 96.5%Language:ANTLR 3.0%Language:Batchfile 0.5%