| Package | Description |
|---|---|
| xtc.parser |
| 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 |
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 |
CharClass
A character class terminal.
|
class |
CharLiteral
A character literal.
|
class |
CharSwitch
A character switch terminal.
|
class |
CharTerminal
The superclass of all character terminals.
|
class |
EmptyListValue
Element to set the semantic value to a new empty list.
|
class |
FollowedBy
A followed-by predicate.
|
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 |
ListValue
The superclass of all value elements specifying a list as the
semantic value.
|
class |
Literal
The superclass of all literals.
|
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 |
Predicate
The superclass of all predicates.
|
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 |
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 |
|---|---|
Element |
CharSwitch.base
The optional default element.
|
protected Element |
CodeGenerator.bindingElement
The element being bound.
|
protected Element |
EquivalenceTester.e2
The element to compare to.
|
Element |
CharCase.element
The optional element.
|
Element |
UnaryOperator.element
The element.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Iterator<Element> |
CodeGenerator.elementIter
The iterator over the elements of a sequence.
|
protected java.util.List<Element> |
Annotator.Detector.elements
The list of elements.
|
protected java.util.List<Element> |
Annotator.Rewriter.elements
The list of elements.
|
protected java.util.List<Element> |
ValueChecker.elements
The list of elements.
|
protected java.util.List<Element> |
Transformer.Deducer.elements
The list of elements.
|
protected java.util.List<Element> |
Transformer.Typer.elements
The list of elements.
|
protected java.util.List<Element> |
ListMaker.elements
The list of elements.
|
java.util.List<Element> |
Sequence.elements
The ordered list of grammar elements.
|
protected java.util.List<Element> |
VariantSorter.elements
The list of elements representing the current alternative.
|
protected java.util.List<Element> |
VariantSorter.Registrar.elements
The list of elements.
|
protected java.util.List<Element> |
VariantSorter.Typer.elements
The list of elements.
|
protected java.util.Iterator<Element> |
CodeGenerator.predicateIter
The predicate iterator.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Element> |
Analyzer.copy(T e)
Make a deep copy of the specified element.
|
<T extends Element> |
Copier.copy(T e)
Copy the specified element.
|
| Modifier and Type | Method and Description |
|---|---|
protected Element |
GenericVoider.check(UnaryOperator op)
Check the specified binding or string match.
|
Element |
Sequence.get(int idx)
Get the element at the specified index.
|
Element |
Analyzer.getValue(java.util.List<Element> list,
boolean ignoreActions)
Get the specified list's semantic value.
|
Element |
Analyzer.joinPrefixes(Sequence source,
Element target)
Join the specified sequence with the specified element.
|
Element |
Analyzer.joinTerminals(Sequence source,
Element target)
Join the specified sequence with the specified element.
|
static Element |
Analyzer.strip(Element e)
Strip unnecessary ordered choices and sequences from the specified
element.
|
static Element |
Analyzer.stripAndUnbind(Element e)
Strip and unbind the specified element.
|
static Element |
Analyzer.unbind(Element e)
Unbind the specified element.
|
Element |
ProductionVoider.Tester.visit(Action a)
Visit the specified action.
|
Element |
Generifier.visit(Binding b)
Visit the specified binding.
|
Element |
GenericVoider.visit(Binding b)
Visit the specified binding.
|
Element |
GrammarVisitor.visit(Binding b)
Visit the specified binding.
|
Element |
Simplifier.visit(Binding b)
Visit the specified binding.
|
Element |
ProductionVoider.visit(Binding b)
Visit the specified binding.
|
Element |
ProductionVoider.Tester.visit(Binding b)
Visit the specified binding.
|
Element |
DirectLeftRecurser.visit(Binding b)
Visit the specified binding.
|
Element |
Simplifier.visit(CharClass c)
Visit the specified character class.
|
Element |
GrammarVisitor.visit(CharSwitch s)
Visit the specified character switch.
|
Element |
Generifier.visit(Element e)
Visit the specified element.
|
Element |
GrammarVisitor.visit(Element e)
Visit the specified element.
|
Element |
ElementVoider.visit(Element e)
Visit the specified element.
|
Element |
Copier.visit(Element e)
Visit the specified element.
|
Element |
DirectLeftRecurser.visit(Element e)
Visit the specified element.
|
Element |
Generifier.visit(NodeMarker m)
Visit the specified node marker.
|
Element |
DirectLeftRecurser.visit(NodeMarker m)
Visit the specified node marker.
|
Element |
Inliner.visit(NonTerminal nt)
Visit the specified nonterminal.
|
Element |
Generifier.visit(NonTerminal nt)
Visit the specified nonterminal.
|
Element |
Tokenizer.visit(NonTerminal nt)
Visit the specified nonterminal.
|
Element |
DeadProductionEliminator.visit(NonTerminal nt)
Visit the specified nonterminal.
|
Element |
Renamer.visit(NonTerminal nt)
Visit the specified nonterminal.
|
Element |
RootFinder.visit(NonTerminal nt)
Visit the specified nonterminal.
|
Element |
ReferenceCounter.visit(NonTerminal nt)
Visit the specified nonterminal.
|
Element |
ProductionVoider.Tester.visit(NonTerminal nt)
Visit the specified nonterminal.
|
Element |
DirectLeftRecurser.visit(NonTerminal nt)
Visit the specified nonterminal.
|
Element |
DuplicateProductionFolder.visit(NonTerminal nt)
Visit the specified nonterminal.
|
Element |
Generifier.visit(NullLiteral l)
Visit the specified null literal.
|
Element |
DirectLeftRecurser.visit(NullLiteral l)
Visit the specified null literal.
|
Element |
Generifier.visit(Option o)
Visit the specified option.
|
Element |
GrammarVisitor.visit(Option o)
Visit the specified option.
|
Element |
Transformer.Lifter.visit(Option o)
Visit the specified option.
|
Element |
Transformer.Desugarer.visit(Option o)
Visit the specified option.
|
Element |
Simplifier.visit(Option o)
Visit the specified option.
|
Element |
DirectLeftRecurser.visit(Option o)
Visit the specified option.
|
Element |
TerminalOptimizer.visit(OrderedChoice c)
Visit the specified ordered choice.
|
Element |
Generifier.visit(OrderedChoice c)
Visit the specified ordered choice.
|
Element |
GrammarVisitor.visit(OrderedChoice c)
Visit the specified ordered choice.
|
Element |
PrefixFolder.visit(OrderedChoice c)
Visit the specified ordered choice.
|
Element |
Transformer.Lifter.visit(OrderedChoice c)
Visit the specified ordered choice.
|
Element |
ElementVoider.visit(OrderedChoice c)
Visit the specified ordered choice.
|
Element |
ReferenceCounter.visit(OrderedChoice c)
Visit the specified ordered choice.
|
Element |
Simplifier.visit(OrderedChoice c)
Visit the specified ordered choice.
|
Element |
ChoiceExpander.visit(OrderedChoice c)
Visit the specified ordered choice.
|
Element |
DirectLeftRecurser.visit(OrderedChoice c)
Visit the specified ordered choice.
|
Element |
GrammarVisitor.visit(ParserAction pa)
Visit the specified parser action.
|
Element |
ProductionVoider.Tester.visit(ParserAction pa)
Visit the specified parser action.
|
Element |
Generifier.visit(ParseTreeNode n)
Visit the specified parse tree node.
|
Element |
DirectLeftRecurser.visit(ParseTreeNode n)
Visit the specified parse tree node.
|
Element |
TerminalOptimizer.visit(Predicate p)
Visit the specified predicate.
|
Element |
GrammarVisitor.visit(Predicate p)
Visit the specified predicate.
|
Element |
PrefixFolder.visit(Predicate p)
Visit the specified predicate.
|
Element |
Transformer.Lifter.visit(Predicate p)
Visit the specified predicate.
|
Element |
ElementVoider.visit(Predicate p)
Visit the specified predicate.
|
Element |
ElementVoider.visit(Quantification q)
Visit the specified quantification.
|
Element |
Generifier.visit(Repetition r)
Visit the specified repetition.
|
Element |
GrammarVisitor.visit(Repetition r)
Visit the specified repetition.
|
Element |
Transformer.Lifter.visit(Repetition r)
Visit the specified repetition.
|
Element |
Transformer.Desugarer.visit(Repetition r)
Visit the specified repetition.
|
Element |
Simplifier.visit(Repetition r)
Visit the specified repetition.
|
Element |
DirectLeftRecurser.visit(Repetition r)
Visit the specified repetition.
|
Element |
GrammarVisitor.visit(SemanticPredicate p)
Visit the specified semantic predicate.
|
Element |
ProductionVoider.Tester.visit(SemanticPredicate p)
Visit the specified semantic predicate.
|
Element |
TerminalOptimizer.visit(Sequence s)
Visit the specified sequence.
|
Element |
Generifier.visit(Sequence s)
Visit the specified sequence.
|
Element |
GrammarVisitor.visit(Sequence s)
Visit the specified sequence.
|
Element |
ElementVoider.visit(Sequence s)
Visit the specified sequence.
|
Element |
Simplifier.visit(Sequence s)
Visit the specified sequence.
|
Element |
ChoiceExpander.visit(Sequence s)
Visit the specified sequence.
|
Element |
DirectLeftRecurser.visit(Sequence s)
Visit the specified sequence.
|
Element |
Generifier.visit(StringLiteral l)
Visit the specified string literal.
|
Element |
DirectLeftRecurser.visit(StringLiteral l)
Visit the specified string literal.
|
Element |
Generifier.visit(StringMatch m)
Visit the specified string match.
|
Element |
GenericVoider.visit(StringMatch m)
Visit the specified string match.
|
Element |
GrammarVisitor.visit(StringMatch m)
Visit the specified string match.
|
Element |
Simplifier.visit(StringMatch m)
Visit the specified string match.
|
Element |
DirectLeftRecurser.visit(StringMatch m)
Visit the specified string match.
|
Element |
ProductionVoider.visit(ValueElement e)
Visit the specified value element.
|
Element |
ChoiceExpander.visit(ValueElement v)
Visit the specified value element.
|
Element |
GrammarVisitor.visit(VoidedElement v)
Visit the specified voided element.
|
Element |
Simplifier.visit(VoidedElement v)
Visit the specified voided element.
|
Element |
ProductionVoider.visit(VoidedElement v)
Visit the specified voided element.
|
protected Element |
ElementVoider.wrap(Element el)
Wrap the specified element in a voiding operator.
|
| Modifier and Type | Method and Description |
|---|---|
Sequence |
Sequence.add(Element e)
Add the specified element to this sequence.
|
boolean |
EquivalenceTester.areEquivalent(Element e1,
Element e2)
Determine whether the specified elements are equivalent.
|
protected Binding |
Generifier.bind(Element e)
Create a binding for the specified element.
|
protected Binding |
Transformer.Lifter.bind(Element e)
Bind the specified element.
|
protected Binding |
DirectLeftRecurser.bind(Element e)
Create a binding for the specified element.
|
protected VoidedElement |
Annotator.bindAndVoid(Element e)
Bind and void the specified element.
|
boolean |
Analyzer.consumesInput(Element e)
Determine whether the specified element may consume the input.
|
static Sequence |
Sequence.ensure(Element e)
Ensure that the specified element is a sequence.
|
boolean |
Analyzer.isBindable(Element e)
Determine whether the specified element can be bound.
|
protected boolean |
Annotator.isBoundAndVoided(Element e)
Determine whether the specified element already is bound and
voided.
|
boolean |
Analyzer.isNotFollowedBy(Element e)
Determine whether the specified element is a not-followed-by
predicate.
|
protected boolean |
Annotator.isParseTreeNode(Element e)
Determine whether the specified element is a possibly bound or
voided parse tree node.
|
protected boolean |
PrettyPrinter.isPrefix(Element e)
Determine whether the specified element represents a prefix
operator.
|
protected boolean |
Annotator.isValuable(Element e)
Determine whether the specified element is valuable.
|
Element |
Analyzer.joinPrefixes(Sequence source,
Element target)
Join the specified sequence with the specified element.
|
Element |
Analyzer.joinTerminals(Sequence source,
Element target)
Join the specified sequence with the specified element.
|
boolean |
Analyzer.matchesEmpty(Element e)
Determine whether the specified element matches the empty input.
|
java.lang.String |
Analyzer.matchingText(Element e)
Get the text matched by the specified element.
|
boolean |
Analyzer.mayBeNull(Element element)
Determine whether the list value of the specified element may be
null. |
protected Sequence |
Transformer.Lifter.process(Element e,
boolean bound)
Process the specified repeated, optional, or predicated
element.
|
protected void |
Annotator.recurse(Element e)
Recursively process the specified element.
|
protected void |
VariantSorter.recurse(Element e)
Recurse on the specified element.
|
boolean |
Analyzer.restrictsInput(Element e)
Determine whether the specified element restricts the input.
|
static boolean |
Analyzer.setsValue(Element e,
boolean all)
Determine whether the specified element sets the semantic value.
|
static Element |
Analyzer.strip(Element e)
Strip unnecessary ordered choices and sequences from the specified
element.
|
static Element |
Analyzer.stripAndUnbind(Element e)
Strip and unbind the specified element.
|
Type |
Analyzer.type(Element element)
Type the specified element.
|
static Element |
Analyzer.unbind(Element e)
Unbind the specified element.
|
void |
MetaDataSetter.visit(Element e)
Analyze the specified element.
|
Element |
Generifier.visit(Element e)
Visit the specified element.
|
void |
TextTester.visit(Element e)
Visit the specified element.
|
java.lang.Boolean |
EquivalenceTester.visit(Element e1)
Visit the specified element.
|
void |
Tokenizer.Tester.visit(Element e)
Visit the specified element.
|
Element |
GrammarVisitor.visit(Element e)
Visit the specified element.
|
void |
TreeExtractor.visit(Element e)
Visit the specified element.
|
Element |
ElementVoider.visit(Element e)
Visit the specified element.
|
Element |
Copier.visit(Element e)
Visit the specified element.
|
Element |
DirectLeftRecurser.visit(Element e)
Visit the specified element.
|
void |
ReachabilityChecker.visit(Element e)
Visit the specified element.
|
void |
TreeTyper.visit(Element e)
Visit the specified element.
|
void |
LeftRecurser.visit(Element e)
Visit the specified element.
|
protected Element |
ElementVoider.wrap(Element el)
Wrap the specified element in a voiding operator.
|
| Modifier and Type | Method and Description |
|---|---|
Sequence |
Sequence.addAll(java.util.List<Element> l)
Add all elements in the specified list to this sequence.
|
Binding |
Analyzer.bind(java.util.List<Element> l)
Bind the elements in the specified list.
|
Binding |
Analyzer.bind(java.util.List<Element> l,
java.lang.String marker)
Bind the elements in the specified list.
|
static Binding |
Analyzer.getBinding(java.util.List<Element> l)
Get the binding for the specified list's value.
|
Element |
Analyzer.getValue(java.util.List<Element> list,
boolean ignoreActions)
Get the specified list's semantic value.
|
static boolean |
Analyzer.setsNullValue(java.util.List<Element> l)
Determine whether the specified list of elements sets the
semantic value to
null. |
static boolean |
Analyzer.setsValue(java.util.List<Element> l,
boolean all)
Determine whether the specified list of elements sets the
semantic value.
|
| Constructor and Description |
|---|
Binding(java.lang.String name,
Element element)
Create a new binding with the specified variable and element.
|
CharCase(CharClass klass,
Element element)
Create a new character case.
|
CharCase(char c,
Element element)
Create a new character case.
|
CharSwitch(CharClass klass,
Element element)
Create a new character switch element which includes a case for
the specified character class and corresponding element.
|
CharSwitch(java.util.List<CharCase> cases,
Element base)
Create a new character switch element.
|
FollowedBy(Element element)
Create a new followed-by predicate.
|
NotFollowedBy(Element element)
Create a new not-followed-by predicate.
|
Option(Element element)
Create a new option.
|
OrderedChoice(Element element)
Create a new ordered choice with the specified element as its
only alternative.
|
Predicate(Element element)
Create a new predicate with the specified element.
|
Quantification(Element element)
Create a new quantified element.
|
Repetition(boolean once,
Element element)
Create a new repetition.
|
Sequence(Element element)
Create a new sequence with the specified element.
|
StringMatch(java.lang.String text,
Element element)
Create a new string match with the specified text and element.
|
UnaryOperator(Element element)
Create a new unary operator with the specified element.
|
VoidedElement(Element element)
Create a new voided element.
|
| Constructor and Description |
|---|
Sequence(java.util.List<Element> elements)
Create a new sequence.
|
Sequence(SequenceName name,
java.util.List<Element> elements)
Create a new sequence.
|
Copyright © 2014. All Rights Reserved.