| Package | Description |
|---|---|
| org.stekikun.dolmen.syntax |
| Modifier and Type | Field and Description |
|---|---|
@Nullable PExtent |
PProduction.Actual.args
The Java arguments to the production item, if any.
|
@Nullable PExtent |
PGrammarRule.args
The formal arguments for this rule, if any
|
static PExtent |
PExtent.DUMMY
A dummy extent for convenience, with no holes
|
PExtent |
PProduction.ActionItem.extent
The in-source extent for this semantic action
|
PExtent |
PGrammarRule.returnType
This rule's return type
|
| Modifier and Type | Method and Description |
|---|---|
PExtent |
PExtent.Builder.build(int endPos)
Closes the extent at the given source position
endPos
and returns it. |
static PExtent |
PExtent.inlined(String contents)
This is equivalent to
ofExtent(Extent.inlined(contents)). |
static PExtent |
PExtent.ofExtent(Extent extent) |
| Modifier and Type | Method and Description |
|---|---|
PProduction.Builder |
PProduction.Builder.addAction(PExtent extent)
Adds a semantic action item
|
static CExtent |
CExtent.of(PExtent extent,
List<CExtent> children,
String ruleName) |
static IReport |
IReport.of(String message,
IReport.Severity severity,
PExtent extent,
PExtent.Hole hole) |
| Constructor and Description |
|---|
ActionItem(PExtent extent)
Builds a semantic action item from the given extent
|
Actual(@Nullable Located<String> binding,
PProduction.ActualExpr item,
@Nullable PExtent args)
Builds a production item based on the given parameters
|
Builder(boolean visibility,
PExtent returnType,
Located<String> name,
List<Located<String>> params,
@Nullable PExtent args)
Returns a fresh builder with the given parameters
|
Builder(boolean visibility,
PExtent returnType,
Located<String> name,
List<Located<String>> params,
@Nullable PExtent args)
Returns a fresh builder with the given parameters
|
PExtent(PExtent ext)
A copy constructor for parameterized extents
|
PGrammarRule(boolean visibility,
PExtent returnType,
Located<String> name,
List<Located<String>> params,
@Nullable PExtent args,
List<PProduction> productions)
Builds a grammar rule from the given parameters
|
PGrammarRule(boolean visibility,
PExtent returnType,
Located<String> name,
List<Located<String>> params,
@Nullable PExtent args,
List<PProduction> productions)
Builds a grammar rule from the given parameters
|