dist/
contains the .java flies generated by ANTLR4grammar/
contains the grammar (.g4) files that ANTLR4 uses to generate the parserhelpers/
contains helper classes, e.g. LexerHelper that handles indent/dedent in the lexerinput-files/
contains the files, which the parser is tested onApp.java
the main entry for the parser
antlr-4.12.0-complete.jar
contains the ANLTR4 framework
- Same structure as
src/
but contains all the .class files compiled from the .java files insrc/
sudocode/
contains the extension that supports syntax highlighting of .sudocode files
Generates and compiles the lexer and parser.
Runs the parser by running the App
. This script also builds the parser, so running build.sh
is not necessary.
Re-installs the sudocode/
extension. This is needed for changes in the extension to take effect. Make sure to run npm install
before running this script for the first time. Also, the code
CLI must be available for this script to work.
Java Development Kit (JDK) of version 8 or above is required to run ANTLR4. When it is installed the run.sh
script will build and run the parser.
Note: On Windows the .sh scripts cannot be run directly. They can either be run through WSL or by running each command one at a time.