Skip to content

ANTLR-based parser for a simple programming language. (Theory of Languages and Machines project, spring 2020)

License

Notifications You must be signed in to change notification settings

Af4rinz/antlr-parser

Repository files navigation

ANTLR parser

ANTLR-based parser for a simple programming language.

Run

Run "run.bat" to compile the grammar, then run grun antlr-parser program -gui.

Sample codes and run results are stored in "Samples" folder.

Notes

  • single-line comments start with # until end of line character.
  • multi-line comments are in form of /*...*/.
  • code blocks in the form {...} are supported.
  • support for do-while loops.
  • classes are in Java format; i.e. no functions can be outside classes, only global variables.

About

ANTLR-based parser for a simple programming language. (Theory of Languages and Machines project, spring 2020)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published