A step to child i
of the current node, counting from zero.
Dependence record saying that the source attribute depends on
attribute
of a node with type type
that is the given step away.
A single step in the evaluation of an attribute.
Create the configuration for a particular run of the compiler.
Create the configuration for a particular run of the compiler.
If supplied, use emitter
instead of a standard output emitter.
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.
config
provides access to all aspects of the configuration.
A step to the previous node in a sequence.
A step to a node that doesn't fit into any of the other categories.
A step to the parent of the current node.
A step to the previous node in a sequence.
A step nowhere.
Support Kiama-specific profiling dimensions.
Support Kiama-specific profiling dimensions.
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.
Pretty-print an abstract syntax trees.
Pretty-print an abstract syntax trees. Default: return an empty string.
Print the dependency graph for the attribute evaluation represented
by record
.
Print the dependency graph for the attribute evaluation represented
by record
. The output is in dot form.
Function to process the input that was parsed.
Function to process the input that was parsed. filename
is the name
of the file from which the input came. ast
is the abstract syntax tree
produced by the parser from that file. config
provides access to all
aspects of the configuration. The default implmentation does nothing.
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.
Take any actions that need to be done at the start of reporting.
Take any actions that need to be done at the start of reporting.
Summarise the single step between two nodes at which attributes have been evaluated.
Summarise the single step between two nodes at which attributes have been evaluated.
Trait to provide basic functionality for a compiler-like program constructed from phases, including profiling and timing support.
T
is the type of the syntax tree communicated from the parser to the main processing of the compiler.C
is the type of the configuration.