| Package | Description |
|---|---|
| org.textmapper.lapg.api.builder | |
| org.textmapper.lapg.api.rule | |
| org.textmapper.lapg.builder | |
| org.textmapper.lapg.common | |
| org.textmapper.lapg.util |
| Modifier and Type | Method and Description |
|---|---|
void |
GrammarBuilder.addRule(Nonterminal left,
RhsPart rhSide,
Terminal prio) |
Nonterminal |
GrammarBuilder.addShared(RhsPart part,
String nameHint) |
RhsAssignment |
GrammarBuilder.assignment(String name,
RhsPart inner,
boolean isAddition,
SourceElement origin) |
RhsCast |
GrammarBuilder.cast(Symbol asSymbol,
RhsPart inner,
SourceElement origin) |
RhsIgnored |
GrammarBuilder.ignored(RhsPart inner,
Collection<RhsIgnored.ParenthesisPair> parentheses,
SourceElement origin) |
RhsList |
GrammarBuilder.list(RhsSequence inner,
RhsPart separator,
boolean nonEmpty,
SourceElement origin) |
RhsOptional |
GrammarBuilder.optional(RhsPart inner,
SourceElement origin) |
| Modifier and Type | Method and Description |
|---|---|
RhsChoice |
GrammarBuilder.choice(Collection<RhsPart> parts,
SourceElement origin) |
RhsSequence |
GrammarBuilder.sequence(String name,
Collection<RhsPart> parts,
SourceElement origin) |
RhsUnordered |
GrammarBuilder.unordered(Collection<RhsPart> parts,
SourceElement origin) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
RhsAssignment
evgeny, 2/3/13
|
interface |
RhsCast
evgeny, 2/3/13
|
interface |
RhsChoice
evgeny, 11/24/12
|
interface |
RhsIgnored |
interface |
RhsList
evgeny, 1/3/13
|
interface |
RhsOptional
evgeny, 11/24/12
|
interface |
RhsRoot |
interface |
RhsSequence
Ordered sequence of elements.
|
interface |
RhsSet |
interface |
RhsSymbol
evgeny, 11/24/12
|
interface |
RhsUnordered
Unordered sequence of elements.
|
| Modifier and Type | Method and Description |
|---|---|
RhsPart |
RhsIgnored.getInner() |
RhsPart |
RhsOptional.getPart() |
RhsPart |
RhsCast.getPart() |
RhsPart |
RhsAssignment.getPart() |
RhsPart[] |
RhsUnordered.getParts() |
RhsPart[] |
RhsSequence.getParts() |
RhsPart[] |
RhsChoice.getParts() |
RhsPart |
RhsList.getSeparator() |
| Modifier and Type | Class and Description |
|---|---|
class |
LiRhsSet |
| Modifier and Type | Method and Description |
|---|---|
static Set<RhsSymbol> |
RuleUtil.getSymbolsByName(String name,
RhsPart p) |
static boolean |
RuleUtil.hasAliases(RhsPart part,
String name) |
| Modifier and Type | Method and Description |
|---|---|
static RhsPart |
RhsUtil.unwrap(RhsPart part) |
static RhsPart |
RhsUtil.unwrapEx(RhsPart part,
boolean opts,
boolean casts,
boolean assignments) |
static RhsPart |
RhsUtil.unwrapOpt(RhsPart part) |
| Modifier and Type | Method and Description |
|---|---|
static Iterable<RhsPart> |
RhsUtil.getChildren(RhsPart part) |
| Modifier and Type | Method and Description |
|---|---|
static RhsChoice |
RhsUtil.asChoice(RhsPart... parts) |
static boolean |
RhsUtil.containsRef(RhsPart part,
Symbol ref) |
static RhsAssignment |
RhsUtil.getAssignment(RhsPart part) |
static AstType |
RhsUtil.getCastType(RhsPart part) |
static Iterable<RhsPart> |
RhsUtil.getChildren(RhsPart part) |
static Symbol |
RhsUtil.getRepresentative(RhsPart part) |
static RhsSymbol[] |
RhsUtil.getRhsSymbols(RhsPart p) |
static boolean |
RhsUtil.isConstant(RhsPart part) |
static boolean |
RhsUtil.isEmpty(RhsPart p) |
static boolean |
RhsUtil.isNullable(RhsPart part,
List<Nonterminal> dependencies)
Returns true, if an empty string can be derived from "part".
|
static RhsPart |
RhsUtil.unwrap(RhsPart part) |
static RhsPart |
RhsUtil.unwrapEx(RhsPart part,
boolean opts,
boolean casts,
boolean assignments) |
static RhsPart |
RhsUtil.unwrapOpt(RhsPart part) |
Copyright © 2014. All rights reserved.