By Brandon Stein
- Run
makefrom the root directory to generate the executablewhitespace - Run the executable using
./whitespace filename, wherefilenamerefers to the file containing a whitespace program
The whitespace executable will print the program flow from the given file in plain English.
If a value below 128 is pushed onto the stack, the character representation of
that value will also be printed in the output. There is also support for
non-whitespace characters in programs, which will be ignored by the lexer and
treated as comments.
- Run
ocamldep -bytecode *.mli *.mlfrom the repository root to generate dependency lists for the Makefile - Run
ocamlyacc -v parser.mlyto generate parser.output which can be used to debug the parser - OCaml Lexer and Parser Generators