Using ANTLR4 With Ubuntu

  1. Download Ubuntu18ANTLR.ova and load it into VirtualBox.
  2. Log in using the default password, "osboxes.org".
  3. Open a Terminal window (if one isn't open).
  4. cd adder
  5. antlr -Dlanguage=Python3 adder.g4
  6. py adder.py
  7. You will probably get the warning messages
            ANTLR runtime and generated code versions disagree: 4.8!=4.5.3
    
    This has to do with a mismatch between libraries; you can ignore it.