Package eu.bandm.tools.d2d2.parser2
Class Parser2
java.lang.Object
eu.bandm.tools.d2d2.parser2.Parser2
Hand-written Ramus parser for d2d definition files.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classDistributes documentation text to definitions in the current module, descending into local definitions when required.(package private) static interface
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, CharSetConst> Accepts and decodes char set constants given as text in single quotes.static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, CharSetConst> Accepts and decodes char set constants given as decimal number.static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, CharSetConst> Accepts and decodes char set constants given as hex number.static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, String> Accepts and decodes string constants, which is the contents between double quotes.(package private) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> (package private) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<SourceItem>> (package private) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Unit> (package private) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<SourceItem>> (package private) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Boolean> static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> Accepts and decodes top level grammar expressions.static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, String> Accepts and decodes identifiers, which includes keywords and identifiers from the lexer world.protected static final Map<D2dLexer.TokenType, String> (package private) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<XRegExp>> (package private) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Object> (package private) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> (package private) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> NamespaceDecls are stored only in the "Module" model element.static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<XRegExp>> static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Reference> Accepts and decodes references, which are identifiers separated by dots.static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, StringConst> Accepts and decodes string constants, which is the contents between double quotes.static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, StringConst> Accepts and decodes string constants not containing newline and tab characters.static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> (package private) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> Accepts and constructs model element for identifier plus an "implicit" prefix.(package private) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Parser2.XmlSpecConsumer> Parse, accept and set the corresponding fields of a model elementDefinitionaccording to '[with ..] xmlrep (trimmed|untrimmed)? (data)? (el|att)? (= "nspref:tag" "value"?)? '
- 
Method SummaryModifier and TypeMethodDescriptionprotected static voidaddToContainer(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, SourceItem currentScope, Definition newdef, String kind) AddDefinition(Enum or Tags or Chars Parser) to currentscope (either to Module or (as a local definition) to a definition).static voidaddToModule(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Module host, SourceItem item, String kind) Store a definition to the given module.static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> atom_000(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes lowest level grammar expressions.static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> atom_002(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Parse greedy and insert prefix sequence as in "@ @ > > (a, b)".static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> atom_004(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes char set cut expression "e1 A e2"static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> atom_006(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes char set join expression "e1 U e2"static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> atom_008(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes char set minus expression "e1 - e2"static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> protected static booleanprotected static <A> Reading<XMLDocumentIdentifier, D2dLexer.TokenType, A> constant(D2dLexer.TokenType type, A value) Delivers an Reading, which accepts the given token type, and reduces to the given value (the location is preserved).static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Optional<List<eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<XRegExp>>>> declModifiers(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<SourceItem>> p_definitionBody) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> decor_002(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes tight sequence "e1 ~ e2"static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> decor_004(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes permutation "e1 & e2"static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> decor_006(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes non-tight sequence "e1 , e2"static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> decor_008(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes alternative "e1 | e2"static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> decorated(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes decorated expression "e1? / + / * / +~ / *~"(package private) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> defaultGroup(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> p_defaultGroup) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<SourceItem>> definitionBody(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<SourceItem>> p_definitionBody) DOCMEprotected static voiderror(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, @Opt Location<XMLDocumentIdentifier> loc, String s, Object... args) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> p_grammarExpr) Accepts and decodes top level grammar expressions.static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<XRegExp>> localnodes(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<SourceItem>> p_definitionBody) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> module(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> p_module) Accepts and decodes a "module" declaration.static @Opt D2dLexer.TokenTypeparse(Reader reader, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int tracelevel, String sourceIndication) Service Access Point for converting a text into a d2d definition module.static <R> Rparse_nonterminal(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, R> nonterminal, Reader reader, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int tracelevel, String sourceIndication) Service Access Point for parsing a particular non-terminal.static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> postGreedy(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes decorated expression "e1? / + / * / +~ / *~"protected static voidpostProcess(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int tracelevel, Module topModule) static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> range(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes next-to-lowest level grammar expressions.(package private) static Location<XMLDocumentIdentifier> region(Expression from, Expression to) (package private) static Location<XMLDocumentIdentifier> region(Content<XMLDocumentIdentifier, ?> from, Expression to) static StringSplit a text segment into a list of strings and their locators.static final Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> substituted(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes substituted expression "e1 ^(e2/i2) ^(e3/i3).."protected static Parser<XMLDocumentIdentifier, D2dLexer.TokenType> tokenSource(Reader reader, String sourceIndication) protected static Reading<XMLDocumentIdentifier, D2dLexer.TokenType, D2dLexer.TokenType> tokenType(D2dLexer.TokenType... types) DOCMEprotected static Parser<XMLDocumentIdentifier, D2dLexer.TokenType> protected static Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Content<XMLDocumentIdentifier, D2dLexer.TokenType>> unparsedLiteral(D2dLexer.TokenType... types) Auxiliary function, gives necessary constraints to type inference.protected static Reading<XMLDocumentIdentifier, D2dLexer.TokenType, String> unparsedLiteralText(D2dLexer.TokenType... types) protected static voidwarning(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, @Opt Location<XMLDocumentIdentifier> loc, String s, Object... args) 
- 
Field Details- 
identTokens
- 
identifierAccepts and decodes identifiers, which includes keywords and identifiers from the lexer world.
- 
referenceAccepts and decodes references, which are identifiers separated by dots.
- 
stringconstAccepts and decodes string constants, which is the contents between double quotes.
- 
charStringContentsAccepts and decodes string constants, which is the contents between double quotes. FIXME zusammenlegen mit "stringconst" ???
- 
stringconstCheckedpublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, stringconstCheckedStringConst> Accepts and decodes string constants not containing newline and tab characters. Is used for character parser definitions, xml names, and name mangling infixes.
- 
charsetAccepts and decodes char set constants given as text in single quotes.
- 
charset_dezAccepts and decodes char set constants given as decimal number.
- 
charset_hexAccepts and decodes char set constants given as hex number.
- 
x_referenceAccepts and constructs model element for identifier plus an "implicit" prefix.
- 
grammarExprAccepts and decodes top level grammar expressions. This is the version where the recursive call "grammarExpr" is resolved. This version must be used by all higher level expressions.
- 
xmlspecParse, accept and set the corresponding fields of a model elementDefinitionaccording to '[with ..] xmlrep (trimmed|untrimmed)? (data)? (el|att)? (= "nspref:tag" "value"?)? '
- 
editspec
- 
inputspecpublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, inputspeceu.bandm.tools.d2d2.parser2.Parser2.XConsumer<XRegExp>> 
- 
postprocessorpublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, postprocessoreu.bandm.tools.d2d2.parser2.Parser2.XConsumer<XRegExp>> 
- 
enumDeclstatic final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, enumDecleu.bandm.tools.d2d2.parser2.Parser2.XConsumer<SourceItem>> 
- 
definitionBodypublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, definitionBodyeu.bandm.tools.d2d2.parser2.Parser2.XConsumer<SourceItem>> 
- 
namespacedeclstatic final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, namespacedecleu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> NamespaceDecls are stored only in the "Module" model element. (Are not set in a "defaultgroup" d2d.g rule!)
- 
importcmdstatic final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, importcmdeu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> 
- 
documentationstatic final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, documentationeu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> 
- 
modlinestatic final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, modlineeu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> 
- 
globaltrimming
- 
manglingRule
- 
defaultDefstatic final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, defaultDefeu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> 
- 
x_defaultDefstatic final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, x_defaultDefeu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> 
- 
defaultGroupstatic final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, defaultGroupeu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> 
- 
modulepublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, moduleeu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> 
- 
toppublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, topeu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> 
 
- 
- 
Method Details- 
tokenSourcepublic static TokenSource<XMLDocumentIdentifier,D2dLexer.TokenType> tokenSource(Reader reader, String sourceIndication) 
- 
parse@Opt public static @Opt Module parse(Reader reader, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int tracelevel, String sourceIndication) Service Access Point for converting a text into a d2d definition module.- Parameters:
- tracelevel- for compatibility only, currently ignored.
 
- 
parse_nonterminal@Opt public static <R> R parse_nonterminal(Reading<XMLDocumentIdentifier, D2dLexer.TokenType, R> nonterminal, Reader reader, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int tracelevel, String sourceIndication) Service Access Point for parsing a particular non-terminal.
- 
TRACE
- 
unparsedLiteralprotected static Reading<XMLDocumentIdentifier,D2dLexer.TokenType, unparsedLiteralContent<XMLDocumentIdentifier, D2dLexer.TokenType>> (D2dLexer.TokenType... types) Auxiliary function, gives necessary constraints to type inference.- Parameters:
- types- realizes an ALTERNATIVE of accepted token types
- Returns:
- an Reading which will deliver one Contentas its reduction result.
 
- 
tokenTypeprotected static Reading<XMLDocumentIdentifier,D2dLexer.TokenType, tokenTypeD2dLexer.TokenType> (D2dLexer.TokenType... types) DOCME
- 
constantprotected static <A> Reading<XMLDocumentIdentifier,D2dLexer.TokenType, constantA> (D2dLexer.TokenType type, A value) Delivers an Reading, which accepts the given token type, and reduces to the given value (the location is preserved).
- 
unparsedLiteralTextprotected static Reading<XMLDocumentIdentifier,D2dLexer.TokenType, unparsedLiteralTextString> (D2dLexer.TokenType... types) - Parameters:
- types- realizes an ALTERNATIVE of accepted token types
- Returns:
- an Reading which will deliver the text (of type String) of one Token as its parsing result.
 
- 
errorprotected static void error(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, @Opt @Opt Location<XMLDocumentIdentifier> loc, String s, Object... args) 
- 
warningprotected static void warning(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, @Opt @Opt Location<XMLDocumentIdentifier> loc, String s, Object... args) 
- 
optTokenType
- 
terminal
- 
region
- 
region
- 
removeQuotesAndExpandEscapes
- 
atom_000public static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, atom_000Expression> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes lowest level grammar expressions. It must be method(=function) and not constant a definition, because it is the end point of a cyclic reference.- Parameters:
- grammarExpr- the highest level grammar expression. Is inserted here (wrapped into "("..")") for recursion.
 
- 
charParserWrapperpublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, charParserWrapperExpression> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) 
- 
atom_002public static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, atom_002Expression> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Parse greedy and insert prefix sequence as in "@ @ > > (a, b)".
- 
rangepublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, rangeExpression> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes next-to-lowest level grammar expressions. It must be method(=function) because it must pass down the parameter for recursion from its definition point to its lowest point of usage.
- 
atom_004public static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, atom_004Expression> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes char set cut expression "e1 A e2"
- 
atom_006public static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, atom_006Expression> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes char set join expression "e1 U e2"
- 
atom_008public static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, atom_008Expression> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes char set minus expression "e1 - e2"
- 
substitutedpublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, substitutedExpression> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes substituted expression "e1 ^(e2/i2) ^(e3/i3).."
- 
postGreedypublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, postGreedyExpression> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes decorated expression "e1? / + / * / +~ / *~"
- 
decoratedpublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, decoratedExpression> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes decorated expression "e1? / + / * / +~ / *~"
- 
decor_002public static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, decor_002Expression> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes tight sequence "e1 ~ e2"
- 
decor_004public static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, decor_004Expression> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes permutation "e1 & e2"
- 
decor_006public static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, decor_006Expression> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes non-tight sequence "e1 , e2"
- 
decor_008public static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, decor_008Expression> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> grammarExpr) Accepts and decodes alternative "e1 | e2"
- 
grammarExprpublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, grammarExprExpression> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, Expression> p_grammarExpr) Accepts and decodes top level grammar expressions.- Parameters:
- p_grammarExpr- its own result, for defining the grammar rule recursion many levels lower. Is handled by the call to- Reading.fix(java.util.function.Function<eu.bandm.tools.ramus.runtime2.Reading<D, T, A>, eu.bandm.tools.ramus.runtime2.Reading<D, T, A>>), as performed in the initialization code of- grammarExpr.
 
- 
addToModulepublic static void addToModule(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Module host, SourceItem item, String kind) Store a definition to the given module. ImportItems, (Sub-)Modules and Definitions (=Enums, Chars and Tags Parser) can be added. They are stored to different maps, but must have unique names over all.(Made public and with explicit message channel for later use, e.g. construction of synthetic definitions from Parser sub-particles. 
- 
addToContainerprotected static void addToContainer(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, SourceItem currentScope, Definition newdef, String kind) AddDefinition(Enum or Tags or Chars Parser) to currentscope (either to Module or (as a local definition) to a definition).- Parameters:
- kind- for error messaging only.
 
- 
localnodespublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, localnodeseu.bandm.tools.d2d2.parser2.Parser2.XConsumer<XRegExp>> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<SourceItem>> p_definitionBody) 
- 
declModifierspublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, declModifiersOptional<List<eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<XRegExp>>>> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<SourceItem>> p_definitionBody) 
- 
definitionBodypublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, definitionBodyeu.bandm.tools.d2d2.parser2.Parser2.XConsumer<SourceItem>> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<SourceItem>> p_definitionBody) DOCME
- 
checkEnumItemValid
- 
splitdoctextprotected static List<LocString> splitdoctext(Content<XMLDocumentIdentifier, D2dLexer.TokenType> token) Split a text segment into a list of strings and their locators.
- 
defaultGroupstatic final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, defaultGroupeu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> p_defaultGroup) 
- 
modulepublic static final Reading<XMLDocumentIdentifier,D2dLexer.TokenType, moduleeu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> (Reading<XMLDocumentIdentifier, D2dLexer.TokenType, eu.bandm.tools.d2d2.parser2.Parser2.XConsumer<Module>> p_module) Accepts and decodes a "module" declaration. All definitions contained therein must be stored to the maps in this module. Therefore the module is stored in a context register,
- 
postProcessprotected static void postProcess(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, int tracelevel, Module topModule) 
 
-