java.lang.Object
dev.civl.abc.token.IF.Macro.ReplacementUnit
- Direct Known Subclasses:
FunctionMacro.FunctionReplacementUnit
- Enclosing interface:
Macro
The body of a
Macro definition consists of a sequence of
Macro.ReplacementUnits, each of which comprises a preprocessing token
(a non-whitespace token known as the "replacement token" in C11) plus
some possible whitespace.-
Field Summary
FieldsModifier and TypeFieldDescriptionintIndex of this replacement token in the sequence of replacement tokens that constitute the macro definition body, numbered from 0.org.antlr.runtime.TokenThe preprocessing (non-whitespace) replacement token itself.org.antlr.runtime.Token[]Possible 0 or more whitespace tokens following this replacement token. -
Constructor Summary
ConstructorsConstructorDescriptionReplacementUnit(int index, org.antlr.runtime.Token token, org.antlr.runtime.Token[] whitespace) -
Method Summary
-
Field Details
-
index
public int indexIndex of this replacement token in the sequence of replacement tokens that constitute the macro definition body, numbered from 0. -
token
public org.antlr.runtime.Token tokenThe preprocessing (non-whitespace) replacement token itself. -
whitespace
public org.antlr.runtime.Token[] whitespacePossible 0 or more whitespace tokens following this replacement token.
-
-
Constructor Details
-
ReplacementUnit
public ReplacementUnit(int index, org.antlr.runtime.Token token, org.antlr.runtime.Token[] whitespace)
-