Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 429 Bytes

Readme.md

File metadata and controls

21 lines (16 loc) · 429 Bytes

Getting started

  1. Install ANTLR v4 (manual)
  2. Generate ANTLR files antlr4 Calculator.g4 -no-listener -visitor -o app
  3. Copy visitor implementation cp *.java app
  4. Compile javac app/*.java

Run

Type in console cd app && java Run

a = 1+2
b = a^2
c = a + b * (a - 1)
a + b + c

Result should be equal 33.0