The actual parser used to produce the AST.
The actual parser used to produce the AST.
Process the command-line arguments.
Process the command-line arguments. Returns the arguments that have not been processed. Output should be emitted using the provided Emitter. Default: do no processing.
Run the driver using the given args and return the resulting output, which may be error messages or the result of running the compiled program, for example.
Run the driver using the given args and return the resulting output, which may be error messages or the result of running the compiled program, for example. Read standard input from the specified console. Reset the message buffer before calling the driver.
Process the arguments, using the given console for input and the given emitter for output.
Process the arguments, using the given console for input and the
given emitter for output. The arguments are first processed by
checkargs. Any remaining arguments are interpreted as names of
UTF-8 encoded files which are processed in turn by using makeast to
turn their contents into abstract syntax trees (ASTs) and then by
process which conducts arbitrary processing on the ASTs.
Process the program in the file given as the first command-line argument, read input using JLine input editing, and emit output to the standard output.
Process the program in the file given as the first command-line argument, read input using JLine input editing, and emit output to the standard output.
Make an AST from the file with the given name, returning it wrapped in
Left.
Make an AST from the file with the given name, returning it wrapped in
Left. Returns Right with an error message if an AST cannot be made.
Function to process the input that was parsed.
Function to process the input that was parsed. console should be
used to read anything needed by the processing. emitter should be
used for output. Return true if everything worked, false otherwise.
If false is returned, messages about the problem should be logged
by process using the messaging facility.
A compiler that uses RegexParser to produce Attributable ASTs. The AST is initialised with
initTreebyprocess. Override it and call it before performing specific attribution.