Bootstrap Xtext

This commit is contained in:
Sebastian Zarnekow 2020-08-26 12:14:56 +02:00
parent 23bf4ceebf
commit 34f6d014d0
3 changed files with 1088 additions and 1715 deletions

View file

@ -69,12 +69,7 @@ entryRuleGrammar returns [EObject current=null]:
// Rule Grammar // Rule Grammar
ruleGrammar returns [EObject current=null] ruleGrammar returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
otherlv_0='grammar' otherlv_0='grammar'
{ {
@ -257,12 +252,7 @@ entryRuleGrammarID returns [String current=null]:
// Rule GrammarID // Rule GrammarID
ruleGrammarID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] ruleGrammarID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getGrammarIDAccess().getValidIDParserRuleCall_0()); newCompositeNode(grammarAccess.getGrammarIDAccess().getValidIDParserRuleCall_0());
@ -303,12 +293,7 @@ entryRuleAbstractRule returns [EObject current=null]:
// Rule AbstractRule // Rule AbstractRule
ruleAbstractRule returns [EObject current=null] ruleAbstractRule returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getAbstractRuleAccess().getParserRuleParserRuleCall_0()); newCompositeNode(grammarAccess.getAbstractRuleAccess().getParserRuleParserRuleCall_0());
@ -348,12 +333,7 @@ entryRuleAbstractMetamodelDeclaration returns [EObject current=null]:
// Rule AbstractMetamodelDeclaration // Rule AbstractMetamodelDeclaration
ruleAbstractMetamodelDeclaration returns [EObject current=null] ruleAbstractMetamodelDeclaration returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getAbstractMetamodelDeclarationAccess().getGeneratedMetamodelParserRuleCall_0()); newCompositeNode(grammarAccess.getAbstractMetamodelDeclarationAccess().getGeneratedMetamodelParserRuleCall_0());
@ -384,12 +364,7 @@ entryRuleGeneratedMetamodel returns [EObject current=null]:
// Rule GeneratedMetamodel // Rule GeneratedMetamodel
ruleGeneratedMetamodel returns [EObject current=null] ruleGeneratedMetamodel returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
otherlv_0='generate' otherlv_0='generate'
{ {
@ -464,12 +439,7 @@ entryRuleReferencedMetamodel returns [EObject current=null]:
// Rule ReferencedMetamodel // Rule ReferencedMetamodel
ruleReferencedMetamodel returns [EObject current=null] ruleReferencedMetamodel returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
otherlv_0='import' otherlv_0='import'
{ {
@ -525,12 +495,7 @@ entryRuleAnnotation returns [EObject current=null]:
// Rule Annotation // Rule Annotation
ruleAnnotation returns [EObject current=null] ruleAnnotation returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
otherlv_0='@' otherlv_0='@'
{ {
@ -566,12 +531,7 @@ entryRuleParserRule returns [EObject current=null]:
// Rule ParserRule // Rule ParserRule
ruleParserRule returns [EObject current=null] ruleParserRule returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
( (
@ -799,12 +759,7 @@ ruleParserRule returns [EObject current=null]
// Rule RuleNameAndParams // Rule RuleNameAndParams
ruleRuleNameAndParams[EObject in_current] returns [EObject current=in_current] ruleRuleNameAndParams[EObject in_current] returns [EObject current=in_current]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
( (
@ -893,12 +848,7 @@ entryRuleParameter returns [EObject current=null]:
// Rule Parameter // Rule Parameter
ruleParameter returns [EObject current=null] ruleParameter returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
lv_name_0_0=RULE_ID lv_name_0_0=RULE_ID
@ -928,12 +878,7 @@ entryRuleTypeRef returns [EObject current=null]:
// Rule TypeRef // Rule TypeRef
ruleTypeRef returns [EObject current=null] ruleTypeRef returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
( (
@ -979,12 +924,7 @@ entryRuleAlternatives returns [EObject current=null]:
// Rule Alternatives // Rule Alternatives
ruleAlternatives returns [EObject current=null] ruleAlternatives returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getAlternativesAccess().getConditionalBranchParserRuleCall_0()); newCompositeNode(grammarAccess.getAlternativesAccess().getConditionalBranchParserRuleCall_0());
@ -1040,12 +980,7 @@ entryRuleConditionalBranch returns [EObject current=null]:
// Rule ConditionalBranch // Rule ConditionalBranch
ruleConditionalBranch returns [EObject current=null] ruleConditionalBranch returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getConditionalBranchAccess().getUnorderedGroupParserRuleCall_0()); newCompositeNode(grammarAccess.getConditionalBranchAccess().getUnorderedGroupParserRuleCall_0());
@ -1123,12 +1058,7 @@ entryRuleUnorderedGroup returns [EObject current=null]:
// Rule UnorderedGroup // Rule UnorderedGroup
ruleUnorderedGroup returns [EObject current=null] ruleUnorderedGroup returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getUnorderedGroupAccess().getGroupParserRuleCall_0()); newCompositeNode(grammarAccess.getUnorderedGroupAccess().getGroupParserRuleCall_0());
@ -1184,12 +1114,7 @@ entryRuleGroup returns [EObject current=null]:
// Rule Group // Rule Group
ruleGroup returns [EObject current=null] ruleGroup returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getGroupAccess().getAbstractTokenParserRuleCall_0()); newCompositeNode(grammarAccess.getGroupAccess().getAbstractTokenParserRuleCall_0());
@ -1239,12 +1164,7 @@ entryRuleAbstractToken returns [EObject current=null]:
// Rule AbstractToken // Rule AbstractToken
ruleAbstractToken returns [EObject current=null] ruleAbstractToken returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getAbstractTokenAccess().getAbstractTokenWithCardinalityParserRuleCall_0()); newCompositeNode(grammarAccess.getAbstractTokenAccess().getAbstractTokenWithCardinalityParserRuleCall_0());
@ -1275,12 +1195,7 @@ entryRuleAbstractTokenWithCardinality returns [EObject current=null]:
// Rule AbstractTokenWithCardinality // Rule AbstractTokenWithCardinality
ruleAbstractTokenWithCardinality returns [EObject current=null] ruleAbstractTokenWithCardinality returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
{ {
@ -1351,12 +1266,7 @@ entryRuleAction returns [EObject current=null]:
// Rule Action // Rule Action
ruleAction returns [EObject current=null] ruleAction returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
otherlv_0='{' otherlv_0='{'
{ {
@ -1453,12 +1363,7 @@ entryRuleAbstractTerminal returns [EObject current=null]:
// Rule AbstractTerminal // Rule AbstractTerminal
ruleAbstractTerminal returns [EObject current=null] ruleAbstractTerminal returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getAbstractTerminalAccess().getKeywordParserRuleCall_0()); newCompositeNode(grammarAccess.getAbstractTerminalAccess().getKeywordParserRuleCall_0());
@ -1525,12 +1430,7 @@ entryRuleKeyword returns [EObject current=null]:
// Rule Keyword // Rule Keyword
ruleKeyword returns [EObject current=null] ruleKeyword returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
lv_value_0_0=RULE_STRING lv_value_0_0=RULE_STRING
@ -1560,12 +1460,7 @@ entryRuleRuleCall returns [EObject current=null]:
// Rule RuleCall // Rule RuleCall
ruleRuleCall returns [EObject current=null] ruleRuleCall returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
( (
@ -1649,12 +1544,7 @@ entryRuleNamedArgument returns [EObject current=null]:
// Rule NamedArgument // Rule NamedArgument
ruleNamedArgument returns [EObject current=null] ruleNamedArgument returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
( (
@ -1716,12 +1606,7 @@ entryRuleLiteralCondition returns [EObject current=null]:
// Rule LiteralCondition // Rule LiteralCondition
ruleLiteralCondition returns [EObject current=null] ruleLiteralCondition returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
{ {
@ -1763,12 +1648,7 @@ entryRuleDisjunction returns [EObject current=null]:
// Rule Disjunction // Rule Disjunction
ruleDisjunction returns [EObject current=null] ruleDisjunction returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getDisjunctionAccess().getConjunctionParserRuleCall_0()); newCompositeNode(grammarAccess.getDisjunctionAccess().getConjunctionParserRuleCall_0());
@ -1822,12 +1702,7 @@ entryRuleConjunction returns [EObject current=null]:
// Rule Conjunction // Rule Conjunction
ruleConjunction returns [EObject current=null] ruleConjunction returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getConjunctionAccess().getNegationParserRuleCall_0()); newCompositeNode(grammarAccess.getConjunctionAccess().getNegationParserRuleCall_0());
@ -1881,12 +1756,7 @@ entryRuleNegation returns [EObject current=null]:
// Rule Negation // Rule Negation
ruleNegation returns [EObject current=null] ruleNegation returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getNegationAccess().getAtomParserRuleCall_0()); newCompositeNode(grammarAccess.getNegationAccess().getAtomParserRuleCall_0());
@ -1941,12 +1811,7 @@ entryRuleAtom returns [EObject current=null]:
// Rule Atom // Rule Atom
ruleAtom returns [EObject current=null] ruleAtom returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getAtomAccess().getParameterReferenceParserRuleCall_0()); newCompositeNode(grammarAccess.getAtomAccess().getParameterReferenceParserRuleCall_0());
@ -1986,12 +1851,7 @@ entryRuleParenthesizedCondition returns [EObject current=null]:
// Rule ParenthesizedCondition // Rule ParenthesizedCondition
ruleParenthesizedCondition returns [EObject current=null] ruleParenthesizedCondition returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
otherlv_0='(' otherlv_0='('
{ {
@ -2021,12 +1881,7 @@ entryRuleParameterReference returns [EObject current=null]:
// Rule ParameterReference // Rule ParameterReference
ruleParameterReference returns [EObject current=null] ruleParameterReference returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
{ {
@ -2051,12 +1906,7 @@ entryRuleTerminalRuleCall returns [EObject current=null]:
// Rule TerminalRuleCall // Rule TerminalRuleCall
ruleTerminalRuleCall returns [EObject current=null] ruleTerminalRuleCall returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
{ {
@ -2084,12 +1934,7 @@ entryRuleRuleID returns [String current=null]:
// Rule RuleID // Rule RuleID
ruleRuleID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] ruleRuleID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getRuleIDAccess().getValidIDParserRuleCall_0()); newCompositeNode(grammarAccess.getRuleIDAccess().getValidIDParserRuleCall_0());
@ -2130,12 +1975,7 @@ entryRuleValidID returns [String current=null]:
// Rule ValidID // Rule ValidID
ruleValidID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] ruleValidID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
this_ID_0=RULE_ID this_ID_0=RULE_ID
{ {
@ -2168,12 +2008,7 @@ entryRulePredicatedKeyword returns [EObject current=null]:
// Rule PredicatedKeyword // Rule PredicatedKeyword
rulePredicatedKeyword returns [EObject current=null] rulePredicatedKeyword returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
( (
@ -2236,12 +2071,7 @@ entryRulePredicatedRuleCall returns [EObject current=null]:
// Rule PredicatedRuleCall // Rule PredicatedRuleCall
rulePredicatedRuleCall returns [EObject current=null] rulePredicatedRuleCall returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
( (
@ -2356,12 +2186,7 @@ entryRuleAssignment returns [EObject current=null]:
// Rule Assignment // Rule Assignment
ruleAssignment returns [EObject current=null] ruleAssignment returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
( (
@ -2482,12 +2307,7 @@ entryRuleAssignableTerminal returns [EObject current=null]:
// Rule AssignableTerminal // Rule AssignableTerminal
ruleAssignableTerminal returns [EObject current=null] ruleAssignableTerminal returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getAssignableTerminalAccess().getKeywordParserRuleCall_0()); newCompositeNode(grammarAccess.getAssignableTerminalAccess().getKeywordParserRuleCall_0());
@ -2536,12 +2356,7 @@ entryRuleParenthesizedAssignableElement returns [EObject current=null]:
// Rule ParenthesizedAssignableElement // Rule ParenthesizedAssignableElement
ruleParenthesizedAssignableElement returns [EObject current=null] ruleParenthesizedAssignableElement returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
otherlv_0='(' otherlv_0='('
{ {
@ -2571,12 +2386,7 @@ entryRuleAssignableAlternatives returns [EObject current=null]:
// Rule AssignableAlternatives // Rule AssignableAlternatives
ruleAssignableAlternatives returns [EObject current=null] ruleAssignableAlternatives returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getAssignableAlternativesAccess().getAssignableTerminalParserRuleCall_0()); newCompositeNode(grammarAccess.getAssignableAlternativesAccess().getAssignableTerminalParserRuleCall_0());
@ -2632,12 +2442,7 @@ entryRuleCrossReference returns [EObject current=null]:
// Rule CrossReference // Rule CrossReference
ruleCrossReference returns [EObject current=null] ruleCrossReference returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
otherlv_0='[' otherlv_0='['
{ {
@ -2703,12 +2508,7 @@ entryRuleCrossReferenceableTerminal returns [EObject current=null]:
// Rule CrossReferenceableTerminal // Rule CrossReferenceableTerminal
ruleCrossReferenceableTerminal returns [EObject current=null] ruleCrossReferenceableTerminal returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getCrossReferenceableTerminalAccess().getKeywordParserRuleCall_0()); newCompositeNode(grammarAccess.getCrossReferenceableTerminalAccess().getKeywordParserRuleCall_0());
@ -2739,12 +2539,7 @@ entryRuleParenthesizedElement returns [EObject current=null]:
// Rule ParenthesizedElement // Rule ParenthesizedElement
ruleParenthesizedElement returns [EObject current=null] ruleParenthesizedElement returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
otherlv_0='(' otherlv_0='('
{ {
@ -2774,12 +2569,7 @@ entryRulePredicatedGroup returns [EObject current=null]:
// Rule PredicatedGroup // Rule PredicatedGroup
rulePredicatedGroup returns [EObject current=null] rulePredicatedGroup returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
( (
@ -2851,12 +2641,7 @@ entryRuleTerminalRule returns [EObject current=null]:
// Rule TerminalRule // Rule TerminalRule
ruleTerminalRule returns [EObject current=null] ruleTerminalRule returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
( (
@ -3004,12 +2789,7 @@ entryRuleTerminalAlternatives returns [EObject current=null]:
// Rule TerminalAlternatives // Rule TerminalAlternatives
ruleTerminalAlternatives returns [EObject current=null] ruleTerminalAlternatives returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getTerminalAlternativesAccess().getTerminalGroupParserRuleCall_0()); newCompositeNode(grammarAccess.getTerminalAlternativesAccess().getTerminalGroupParserRuleCall_0());
@ -3065,12 +2845,7 @@ entryRuleTerminalGroup returns [EObject current=null]:
// Rule TerminalGroup // Rule TerminalGroup
ruleTerminalGroup returns [EObject current=null] ruleTerminalGroup returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getTerminalGroupAccess().getTerminalTokenParserRuleCall_0()); newCompositeNode(grammarAccess.getTerminalGroupAccess().getTerminalTokenParserRuleCall_0());
@ -3120,12 +2895,7 @@ entryRuleTerminalToken returns [EObject current=null]:
// Rule TerminalToken // Rule TerminalToken
ruleTerminalToken returns [EObject current=null] ruleTerminalToken returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getTerminalTokenAccess().getTerminalTokenElementParserRuleCall_0()); newCompositeNode(grammarAccess.getTerminalTokenAccess().getTerminalTokenElementParserRuleCall_0());
@ -3185,12 +2955,7 @@ entryRuleTerminalTokenElement returns [EObject current=null]:
// Rule TerminalTokenElement // Rule TerminalTokenElement
ruleTerminalTokenElement returns [EObject current=null] ruleTerminalTokenElement returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getTerminalTokenElementAccess().getCharacterRangeParserRuleCall_0()); newCompositeNode(grammarAccess.getTerminalTokenElementAccess().getCharacterRangeParserRuleCall_0());
@ -3257,12 +3022,7 @@ entryRuleParenthesizedTerminalElement returns [EObject current=null]:
// Rule ParenthesizedTerminalElement // Rule ParenthesizedTerminalElement
ruleParenthesizedTerminalElement returns [EObject current=null] ruleParenthesizedTerminalElement returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
otherlv_0='(' otherlv_0='('
{ {
@ -3292,12 +3052,7 @@ entryRuleAbstractNegatedToken returns [EObject current=null]:
// Rule AbstractNegatedToken // Rule AbstractNegatedToken
ruleAbstractNegatedToken returns [EObject current=null] ruleAbstractNegatedToken returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getAbstractNegatedTokenAccess().getNegatedTokenParserRuleCall_0()); newCompositeNode(grammarAccess.getAbstractNegatedTokenAccess().getNegatedTokenParserRuleCall_0());
@ -3328,12 +3083,7 @@ entryRuleNegatedToken returns [EObject current=null]:
// Rule NegatedToken // Rule NegatedToken
ruleNegatedToken returns [EObject current=null] ruleNegatedToken returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
otherlv_0='!' otherlv_0='!'
{ {
@ -3370,12 +3120,7 @@ entryRuleUntilToken returns [EObject current=null]:
// Rule UntilToken // Rule UntilToken
ruleUntilToken returns [EObject current=null] ruleUntilToken returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
otherlv_0='->' otherlv_0='->'
{ {
@ -3412,12 +3157,7 @@ entryRuleWildcard returns [EObject current=null]:
// Rule Wildcard // Rule Wildcard
ruleWildcard returns [EObject current=null] ruleWildcard returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
{ {
@ -3442,12 +3182,7 @@ entryRuleEOF returns [EObject current=null]:
// Rule EOF // Rule EOF
ruleEOF returns [EObject current=null] ruleEOF returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
{ {
@ -3472,12 +3207,7 @@ entryRuleCharacterRange returns [EObject current=null]:
// Rule CharacterRange // Rule CharacterRange
ruleCharacterRange returns [EObject current=null] ruleCharacterRange returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getCharacterRangeAccess().getKeywordParserRuleCall_0()); newCompositeNode(grammarAccess.getCharacterRangeAccess().getKeywordParserRuleCall_0());
@ -3531,12 +3261,7 @@ entryRuleEnumRule returns [EObject current=null]:
// Rule EnumRule // Rule EnumRule
ruleEnumRule returns [EObject current=null] ruleEnumRule returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
( (
@ -3644,12 +3369,7 @@ entryRuleEnumLiterals returns [EObject current=null]:
// Rule EnumLiterals // Rule EnumLiterals
ruleEnumLiterals returns [EObject current=null] ruleEnumLiterals returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
{ {
newCompositeNode(grammarAccess.getEnumLiteralsAccess().getEnumLiteralDeclarationParserRuleCall_0()); newCompositeNode(grammarAccess.getEnumLiteralsAccess().getEnumLiteralDeclarationParserRuleCall_0());
@ -3705,12 +3425,7 @@ entryRuleEnumLiteralDeclaration returns [EObject current=null]:
// Rule EnumLiteralDeclaration // Rule EnumLiteralDeclaration
ruleEnumLiteralDeclaration returns [EObject current=null] ruleEnumLiteralDeclaration returns [EObject current=null]
@init { :
enterRule();
}
@after {
leaveRule();
}:
( (
( (
( (

View file

@ -899,10 +899,10 @@ public class InternalXtextLexer extends Lexer {
try { try {
int _type = RULE_ID; int _type = RULE_ID;
int _channel = DEFAULT_TOKEN_CHANNEL; int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalXtext.g:3756:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) // InternalXtext.g:3471:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
// InternalXtext.g:3756:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* // InternalXtext.g:3471:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
{ {
// InternalXtext.g:3756:11: ( '^' )? // InternalXtext.g:3471:11: ( '^' )?
int alt1=2; int alt1=2;
int LA1_0 = input.LA(1); int LA1_0 = input.LA(1);
@ -911,7 +911,7 @@ public class InternalXtextLexer extends Lexer {
} }
switch (alt1) { switch (alt1) {
case 1 : case 1 :
// InternalXtext.g:3756:11: '^' // InternalXtext.g:3471:11: '^'
{ {
match('^'); match('^');
@ -929,7 +929,7 @@ public class InternalXtextLexer extends Lexer {
recover(mse); recover(mse);
throw mse;} throw mse;}
// InternalXtext.g:3756:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* // InternalXtext.g:3471:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
loop2: loop2:
do { do {
int alt2=2; int alt2=2;
@ -978,10 +978,10 @@ public class InternalXtextLexer extends Lexer {
try { try {
int _type = RULE_INT; int _type = RULE_INT;
int _channel = DEFAULT_TOKEN_CHANNEL; int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalXtext.g:3758:10: ( ( '0' .. '9' )+ ) // InternalXtext.g:3473:10: ( ( '0' .. '9' )+ )
// InternalXtext.g:3758:12: ( '0' .. '9' )+ // InternalXtext.g:3473:12: ( '0' .. '9' )+
{ {
// InternalXtext.g:3758:12: ( '0' .. '9' )+ // InternalXtext.g:3473:12: ( '0' .. '9' )+
int cnt3=0; int cnt3=0;
loop3: loop3:
do { do {
@ -995,7 +995,7 @@ public class InternalXtextLexer extends Lexer {
switch (alt3) { switch (alt3) {
case 1 : case 1 :
// InternalXtext.g:3758:13: '0' .. '9' // InternalXtext.g:3473:13: '0' .. '9'
{ {
matchRange('0','9'); matchRange('0','9');
@ -1027,10 +1027,10 @@ public class InternalXtextLexer extends Lexer {
try { try {
int _type = RULE_STRING; int _type = RULE_STRING;
int _channel = DEFAULT_TOKEN_CHANNEL; int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalXtext.g:3760:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) // InternalXtext.g:3475:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
// InternalXtext.g:3760:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) // InternalXtext.g:3475:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
{ {
// InternalXtext.g:3760:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) // InternalXtext.g:3475:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
int alt6=2; int alt6=2;
int LA6_0 = input.LA(1); int LA6_0 = input.LA(1);
@ -1048,10 +1048,10 @@ public class InternalXtextLexer extends Lexer {
} }
switch (alt6) { switch (alt6) {
case 1 : case 1 :
// InternalXtext.g:3760:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' // InternalXtext.g:3475:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
{ {
match('\"'); match('\"');
// InternalXtext.g:3760:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* // InternalXtext.g:3475:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )*
loop4: loop4:
do { do {
int alt4=3; int alt4=3;
@ -1067,7 +1067,7 @@ public class InternalXtextLexer extends Lexer {
switch (alt4) { switch (alt4) {
case 1 : case 1 :
// InternalXtext.g:3760:21: '\\\\' . // InternalXtext.g:3475:21: '\\\\' .
{ {
match('\\'); match('\\');
matchAny(); matchAny();
@ -1075,7 +1075,7 @@ public class InternalXtextLexer extends Lexer {
} }
break; break;
case 2 : case 2 :
// InternalXtext.g:3760:28: ~ ( ( '\\\\' | '\"' ) ) // InternalXtext.g:3475:28: ~ ( ( '\\\\' | '\"' ) )
{ {
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
input.consume(); input.consume();
@ -1100,10 +1100,10 @@ public class InternalXtextLexer extends Lexer {
} }
break; break;
case 2 : case 2 :
// InternalXtext.g:3760:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' // InternalXtext.g:3475:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
{ {
match('\''); match('\'');
// InternalXtext.g:3760:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* // InternalXtext.g:3475:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )*
loop5: loop5:
do { do {
int alt5=3; int alt5=3;
@ -1119,7 +1119,7 @@ public class InternalXtextLexer extends Lexer {
switch (alt5) { switch (alt5) {
case 1 : case 1 :
// InternalXtext.g:3760:54: '\\\\' . // InternalXtext.g:3475:54: '\\\\' .
{ {
match('\\'); match('\\');
matchAny(); matchAny();
@ -1127,7 +1127,7 @@ public class InternalXtextLexer extends Lexer {
} }
break; break;
case 2 : case 2 :
// InternalXtext.g:3760:61: ~ ( ( '\\\\' | '\\'' ) ) // InternalXtext.g:3475:61: ~ ( ( '\\\\' | '\\'' ) )
{ {
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
input.consume(); input.consume();
@ -1170,12 +1170,12 @@ public class InternalXtextLexer extends Lexer {
try { try {
int _type = RULE_ML_COMMENT; int _type = RULE_ML_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL; int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalXtext.g:3762:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) // InternalXtext.g:3477:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
// InternalXtext.g:3762:19: '/*' ( options {greedy=false; } : . )* '*/' // InternalXtext.g:3477:19: '/*' ( options {greedy=false; } : . )* '*/'
{ {
match("/*"); match("/*");
// InternalXtext.g:3762:24: ( options {greedy=false; } : . )* // InternalXtext.g:3477:24: ( options {greedy=false; } : . )*
loop7: loop7:
do { do {
int alt7=2; int alt7=2;
@ -1200,7 +1200,7 @@ public class InternalXtextLexer extends Lexer {
switch (alt7) { switch (alt7) {
case 1 : case 1 :
// InternalXtext.g:3762:52: . // InternalXtext.g:3477:52: .
{ {
matchAny(); matchAny();
@ -1230,12 +1230,12 @@ public class InternalXtextLexer extends Lexer {
try { try {
int _type = RULE_SL_COMMENT; int _type = RULE_SL_COMMENT;
int _channel = DEFAULT_TOKEN_CHANNEL; int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalXtext.g:3764:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) // InternalXtext.g:3479:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
// InternalXtext.g:3764:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? // InternalXtext.g:3479:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
{ {
match("//"); match("//");
// InternalXtext.g:3764:24: (~ ( ( '\\n' | '\\r' ) ) )* // InternalXtext.g:3479:24: (~ ( ( '\\n' | '\\r' ) ) )*
loop8: loop8:
do { do {
int alt8=2; int alt8=2;
@ -1248,7 +1248,7 @@ public class InternalXtextLexer extends Lexer {
switch (alt8) { switch (alt8) {
case 1 : case 1 :
// InternalXtext.g:3764:24: ~ ( ( '\\n' | '\\r' ) ) // InternalXtext.g:3479:24: ~ ( ( '\\n' | '\\r' ) )
{ {
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
input.consume(); input.consume();
@ -1268,7 +1268,7 @@ public class InternalXtextLexer extends Lexer {
} }
} while (true); } while (true);
// InternalXtext.g:3764:40: ( ( '\\r' )? '\\n' )? // InternalXtext.g:3479:40: ( ( '\\r' )? '\\n' )?
int alt10=2; int alt10=2;
int LA10_0 = input.LA(1); int LA10_0 = input.LA(1);
@ -1277,9 +1277,9 @@ public class InternalXtextLexer extends Lexer {
} }
switch (alt10) { switch (alt10) {
case 1 : case 1 :
// InternalXtext.g:3764:41: ( '\\r' )? '\\n' // InternalXtext.g:3479:41: ( '\\r' )? '\\n'
{ {
// InternalXtext.g:3764:41: ( '\\r' )? // InternalXtext.g:3479:41: ( '\\r' )?
int alt9=2; int alt9=2;
int LA9_0 = input.LA(1); int LA9_0 = input.LA(1);
@ -1288,7 +1288,7 @@ public class InternalXtextLexer extends Lexer {
} }
switch (alt9) { switch (alt9) {
case 1 : case 1 :
// InternalXtext.g:3764:41: '\\r' // InternalXtext.g:3479:41: '\\r'
{ {
match('\r'); match('\r');
@ -1320,10 +1320,10 @@ public class InternalXtextLexer extends Lexer {
try { try {
int _type = RULE_WS; int _type = RULE_WS;
int _channel = DEFAULT_TOKEN_CHANNEL; int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalXtext.g:3766:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) // InternalXtext.g:3481:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
// InternalXtext.g:3766:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ // InternalXtext.g:3481:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
{ {
// InternalXtext.g:3766:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ // InternalXtext.g:3481:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
int cnt11=0; int cnt11=0;
loop11: loop11:
do { do {
@ -1377,8 +1377,8 @@ public class InternalXtextLexer extends Lexer {
try { try {
int _type = RULE_ANY_OTHER; int _type = RULE_ANY_OTHER;
int _channel = DEFAULT_TOKEN_CHANNEL; int _channel = DEFAULT_TOKEN_CHANNEL;
// InternalXtext.g:3768:16: ( . ) // InternalXtext.g:3483:16: ( . )
// InternalXtext.g:3768:18: . // InternalXtext.g:3483:18: .
{ {
matchAny(); matchAny();