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.
The actual parser used to produce the AST.
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.
The entry point for this compiler.
Make an AST by running the parser, reporting errors if the parse fails.
Make an AST by running the parser, reporting errors if the parse fails.
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.
Process the AST by performing any processing at the next level up and then initialising the AST for attribution.
Process the AST by performing any processing at the next level up and then initialising the AST for attribution.
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.
(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.
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.
(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
A compiler that uses RegexParsers to produce Attributable ASTs. The AST is initialised with
initTree
byprocess
. Override it and call it before performing specific attribution.C
is the type of the compiler configuration.