Create the configuration for a particular run of the compiler.
Create the configuration for a particular run of the compiler. Override this if you have a custom configuration for your compiler.
Format an abstract syntax tree for printing.
Format an abstract syntax tree for printing. Default: return an empty document.
The particular parser used to parse this compiler's input.
The suite of parsers that is used by this compiler.
Function to process the input that was parsed.
Function to process the input that was parsed. source
is the input
text processed by the compiler. ast
is the abstract syntax tree
produced by the parser from that text. config
provides access to all
aspects of the configuration.
Create and initialise the configuration for a particular run of the compiler.
Create and initialise the configuration for a particular run of the compiler.
Default: call createConfig
and then initialise the resulting configuration.
Returns either the created configuration or an error message describing
why the configuration couldn't be created.
Driver for this compiler.
Driver for this compiler. First, use the argument list to create a configuration for this execution. Then, use the configuration to run the file processing in the appropriate way.
The character encoding of input files read by this compiler.
The character encoding of input files read by this compiler. Defaults to UTF-8.
The entry point for this compiler.
The entry point for this compiler.
Make an AST by running the parser on the given source, returning messages instead if the parse fails.
Make an AST by running the parser on the given source, returning messages instead if the parse fails.
Process a file argument by using makeast
to turn their contents into
abstract syntax trees (ASTs) and then by process which conducts arbitrary
processing on the ASTs.
Process a file argument 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.
Process the files one by one.
Process the files one by one.
A compiler that uses Parsers to produce positioned ASTs.
C
is the type of the compiler configuration.