Whether this is a test run or not.
Whether this is a test run or not. Test runs generate all of their code using a single emitter so it can be easily compared to what we expect. A normal run sends the code for each class to a separate file so that they can be compiled by Jasmin.
Pretty printer to use to print minijava ASTs.
Pretty printer to use to print minijava ASTs.
Process the source tree by analysing it to check for semantic errors.
Process the source tree by analysing it to check for semantic errors. If any messages are produced, print them. If all is ok, translate the program and generate code for the translation.
(Changed in version 2.9.0) The p0 call-by-name arguments is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.
(Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0
(Since version 2.10.0) lastNoSuccess was not thread-safe and will be removed in 2.11.0
Conduct syntax analysis on the MiniJava program in the file given as the first command-line argument and print out the result source program tree.