Skip to content

Ronney31/Antlr4-Basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published