The actual parser used to produce the AST.
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.
Entry point for standard compiler framework.
Entry point for standard compiler framework. All command-line
argumnents, a JLine console for input editing and a new emitter
to standard output are passed to driver
.
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
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. The
character encoding of the files is given by the encoding
method.
The character encoding of input files read by this compiler.
The character encoding of input files read by this compiler. Defaults to UTF-8.
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.
(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.
A compiler that uses a Scala combinator character-level parser. Define
parser
to specify the actual parser to be used.