git clone https://github.com/rooftopsparrow/java-pseudocode-compiler.git
cd java-pseudocode-compiler
make deps
make
chmod +x getToken
To run tests:
make test
getToken parses string input and tokenizes into segments with seperate values.
CLI usage:
getToken -- pseudocode-compiler
Retrieve token values and codes
Usage: getToken [options]
Options:
-h, --help Display this help
-f, --file <file> Read tokens from <file>
-i, --interactive REPL for trying tokens
-j, --json JSON output
Examples:
getToken < token.dat
-- Read from stdin
getToken -f token.dat
-- Read from file
echo 29.45 | getToken --json
-- Output JSON