| Package | Description |
|---|---|
| xtc.parser | |
| xtc.tree | |
| xtc.type | |
| xtc.util |
| Modifier and Type | Class and Description |
|---|---|
class |
Action
A semantic action.
|
class |
ActionBaseValue
Element to set the semantic value to the result of applying a list
of
actions. |
class |
AlternativeAddition
An alternative addition.
|
class |
AlternativeRemoval
An alternative removal.
|
class |
AnyChar
The any character element.
|
class |
Binding
A binding of a grammar element to a variable.
|
class |
BindingValue
Element to set the semantic value to a binding.
|
class |
CharCase
A case within a character switch.
|
class |
CharClass
A character class terminal.
|
class |
CharLiteral
A character literal.
|
class |
CharRange
A character range for a character classs.
|
class |
CharSwitch
A character switch terminal.
|
class |
CharTerminal
The superclass of all character terminals.
|
class |
Element
The superclass of all grammar elements.
|
class |
EmptyListValue
Element to set the semantic value to a new empty list.
|
class |
FollowedBy
A followed-by predicate.
|
class |
FullProduction
A complete production.
|
class |
GenericActionValue
Element to set the semantic value to an
action. |
class |
GenericNodeValue
Element to set the semantic value to a
generic node. |
class |
GenericRecursionValue
Element to set the semantic value to a list of
actions. |
class |
GenericValue
The superclass of all value elements specifying a generic node as
the semantic value.
|
class |
Grammar
A grammar represented as a collection of modules.
|
class |
ListValue
The superclass of all value elements specifying a list as the
semantic value.
|
class |
Literal
The superclass of all literals.
|
class |
Module
A grammar module.
|
class |
ModuleDependency
A grammar module dependency.
|
class |
ModuleImport
A grammar module import.
|
class |
ModuleInstantiation
A grammar module instantiation.
|
class |
ModuleList
A list of module names as a node.
|
class |
ModuleModification
A grammar module modification.
|
class |
ModuleName
A module name as a node.
|
class |
Name
The superclass of all names.
|
class |
NodeMarker
Element to set a generic node's name.
|
class |
NonTerminal
A nonterminal.
|
class |
NotFollowedBy
A not-followed-by predicate.
|
class |
NullLiteral
A null literal representing a bindable null value.
|
class |
NullValue
Element to set the semantic value to
null. |
class |
Option
An optional grammar element.
|
class |
OrderedChoice
An ordered choice of grammar elements.
|
class |
ParserAction
A parser action.
|
class |
ParseTreeNode
Element to create a parse tree node capturing formatting.
|
class |
PartialProduction
A partial production.
|
class |
Predicate
The superclass of all predicates.
|
class |
Production
The superclass of full and partial productions.
|
class |
ProductionOverride
A production override.
|
class |
ProperListValue
Element to set the semantic value to a list.
|
class |
Quantification
The superclass of repetitions and options.
|
class |
Repetition
A repeated grammar element.
|
class |
SemanticPredicate
A semantic predicate.
|
class |
Sequence
A sequence of grammar elements.
|
class |
SequenceName
A sequence name.
|
class |
StringLiteral
A literal string terminal.
|
class |
StringMatch
A match of a string to a grammar element.
|
class |
StringValue
Element to set the semantic value to a string.
|
class |
Terminal
The superclass of all terminals.
|
class |
TokenValue
Element to collect a production's text as a token.
|
class |
UnaryOperator
The superclass of all unary operators.
|
class |
ValueElement
The superclass of all value elements.
|
class |
VoidedElement
A voided element.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<Node,Node> |
VariantSorter.malformed
The set of AST nodes resulting in an error.
|
protected java.util.Map<Node,Node> |
VariantSorter.malformed
The set of AST nodes resulting in an error.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
Rats.parse(java.io.Reader in,
java.io.File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
Rats.process(Node node) |
| Modifier and Type | Class and Description |
|---|---|
class |
Annotation
The superclass of all annotations.
|
class |
Attribute
A name/value pair.
|
class |
Comment
A source code comment.
|
class |
Formatting
An annotation capturing source code formatting.
|
class |
GNode
A generic node in an abstract syntax tree.
|
class |
LineMarker
A line marker (as used by GCC).
|
class |
Pragma
A pragma.
|
class |
SourceIdentity
A source identity marker.
|
class |
TextToken
A token with an explicit text.
|
class |
Token
A token.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Node> |
Visitor.mapInPlace(Pair<T> list)
Map this visitor over the specified list while also updating the
list.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
Node.add(int index,
java.lang.Object o)
Add the specified object as a child at the specified index.
|
Node |
Node.add(java.lang.Object o)
Add the specified object as a child.
|
Node |
Node.addAll(java.util.Collection<?> c)
Add all values in the specified collection as children.
|
Node |
Node.addAll(int index,
java.util.Collection<?> c)
Add all values in the specified collection as children at the
specified index.
|
Node |
Node.addAll(int index,
Pair<?> p)
Add all values in the list starting with the specified pair as
children at the specified index.
|
Node |
Node.addAll(Pair<?> p)
Add all values in the list starting with the specified pair as
children.
|
Node |
Node.addNode(Node node)
Add the specified node as a child.
|
Node |
Annotation.getNode()
Get the annotated node.
|
Node |
Node.getNode(int index)
Get the node child at the specified index.
|
Node |
Node.strip()
Strip any annotations.
|
Node |
Annotation.strip() |
Node |
Relocator.visit(LineMarker m)
Process the specified line marker.
|
Node |
Relocator.visit(Node n)
Process the specified node.
|
| Modifier and Type | Method and Description |
|---|---|
static Pair<Node> |
Node.toList(java.lang.Object o)
Convert the specified object to a list of nodes.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
Node.addNode(Node node)
Add the specified node as a child.
|
static Formatting |
Formatting.after1(Node node,
java.lang.Object after)
Create a formatting annotation.
|
static Formatting |
Formatting.before1(java.lang.Object before,
Node node)
Create a formatting annotation.
|
java.lang.Object |
Visitor.dispatch(Node n)
Dispatch this visitor on the specified node.
|
Printer |
Printer.format(Node n)
Format the specified node.
|
Printer |
Printer.format(Node n,
boolean locate)
Format the specified node.
|
java.lang.String |
Transducer.getVariableName(Node n)
Get the pattern variable's name.
|
java.lang.String |
Transducer.getVariableType(Node n)
Get the pattern variable's type.
|
boolean |
Transducer.isPatternVariable(Node n)
Determine whether the specified node represents a pattern variable.
|
Printer |
Printer.p(Node node)
Print the specified node.
|
void |
Transducer.process(java.lang.String method,
Node n)
Process the specified node.
|
protected void |
Relocator.relocate(Node n)
Relocate the specified node.
|
static Formatting |
Formatting.round1(java.lang.Object before,
Node node,
java.lang.Object after)
Create a formatting annotation.
|
void |
Annotation.setNode(Node node)
Set the annotated node.
|
GNode |
Transducer.toPatternVariable(Node n)
Ensure that the specified node is a well-formed pattern variable.
|
java.lang.Object |
Visitor.unableToVisit(Node node)
Signal that this visitor has no
visit() method for
the specified node. |
Node |
Relocator.visit(Node n)
Process the specified node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Visitor.iterate(Pair<? extends Node> list)
Iterate this visitor over the specified list.
|
<T> Pair<T> |
Visitor.map(Pair<? extends Node> list)
Map this visitor over the specified list.
|
| Constructor and Description |
|---|
Annotation(Node node)
Create a new annotation for the specified node.
|
Comment(Comment.Kind kind,
java.util.List<java.lang.String> text,
Node node)
Create a new comment.
|
LineMarker(int line,
java.lang.String file,
int flags,
Node node)
Create a new line marker.
|
Pragma(java.lang.String directive,
Node node)
Create a new pragma.
|
SourceIdentity(java.lang.String ident,
Node node)
Create a new source identity marker.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AliasT
A type alias.
|
class |
AnnotatedT
An annotated type.
|
class |
ArrayT
An array type.
|
class |
BooleanT
A boolean type.
|
class |
ClassOrInterfaceT
The superclass of class and interface types.
|
class |
ClassT
A class type.
|
class |
DerivedT
The superclass of all derived types.
|
class |
EnumeratorT
An enumerator.
|
class |
EnumT
An enumerated type.
|
class |
ErrorT
The pseudo-type indicating a malformed type.
|
class |
FloatT
A floating point type.
|
class |
FunctionOrMethodT
The superclass of function and method types.
|
class |
FunctionT
A function type.
|
class |
InstantiatedT
An instantiated type.
|
class |
IntegerT
An integer type.
|
class |
InterfaceT
An interface type.
|
class |
InternalParameter
An internal parameter.
|
class |
InternalT
An internal type, identified by its name.
|
class |
LabelT
A label type.
|
class |
MethodT
A method type.
|
class |
NamedParameter
A named parameter.
|
class |
NumberT
The superclass of all number types.
|
class |
PackageT
A package type.
|
class |
Parameter
The superclass of all type parameters.
|
class |
ParameterizedT
A parameterized type.
|
class |
PointerT
A pointer type.
|
class |
StructOrUnionT
The superclass of struct and union types.
|
class |
StructT
A struct type.
|
class |
TupleT
A tuple type.
|
class |
Type
The superclass of all types.
|
class |
UnionT
A union type.
|
class |
UnitT
A unit type.
|
class |
VariableT
A variable.
|
class |
VariantT
A variant type.
|
class |
VoidT
A void type.
|
class |
Wildcard
A type wildcard.
|
class |
WrappedT
The superclass of all wrapped types.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Type.mark(Node node)
Mark the specified node as having this type.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Node |
Tool.parse(java.io.Reader in,
java.io.File file)
Parse the specified file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SymbolTable.enter(Node n)
Enter the specified node.
|
void |
Runtime.error(java.lang.String msg,
Node n)
Print the specified error message.
|
void |
SymbolTable.exit(Node n)
Exit the specified node.
|
static boolean |
SymbolTable.hasScope(Node n)
Determine whether the specified node has an associated
scope. |
void |
SymbolTable.mark(Node n)
Mark the specified node.
|
void |
Tool.process(Node node)
Process the specified AST node.
|
void |
Runtime.warning(java.lang.String msg,
Node n)
Print the specified warning message.
|
Copyright © 2014. All Rights Reserved.