Skip to content
A simple example of an expression parser using ANTLR
C#
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Antlr Runtime
SimpleParser
.gitignore
license.txt
readme.md

readme.md

ExampleParser

A simple expression parser using ANTLR.

Accepts simple arithmetic expressions (+, -, *, /), assignments and variables.

Binaries are downloadable at github.com

Language example

x = 4
y = 16
z = x * (y + 4)

User interface

  • Insert code in the textbox under "Program"
  • Press CTRL+ENTER or click "Execute" to evaluate the program
  • Assigned variables are printed along with their value under "Variables"
  • Parser errors and the result of the program (the last expression) is shown under "Messages"
Something went wrong with that request. Please try again.