diff options
author | 2021-06-29 11:37:14 +0200 | |
---|---|---|
committer | 2021-06-29 11:37:14 +0200 | |
commit | 272c7c5dd04feb54806b92d88dc1a5029cddc397 (patch) | |
tree | decf6950c10782d124c5a3b6055a09d52f9e5791 /language-web/xtext-gen/org/eclipse/viatra/solver/language/serializer/ProblemSyntacticSequencer.java | |
parent | Fix derived state computer idempotency (diff) | |
download | refinery-272c7c5dd04feb54806b92d88dc1a5029cddc397.tar.gz refinery-272c7c5dd04feb54806b92d88dc1a5029cddc397.tar.zst refinery-272c7c5dd04feb54806b92d88dc1a5029cddc397.zip |
Webpack build for frontend
Diffstat (limited to 'language-web/xtext-gen/org/eclipse/viatra/solver/language/serializer/ProblemSyntacticSequencer.java')
-rw-r--r-- | language-web/xtext-gen/org/eclipse/viatra/solver/language/serializer/ProblemSyntacticSequencer.java | 139 |
1 files changed, 0 insertions, 139 deletions
diff --git a/language-web/xtext-gen/org/eclipse/viatra/solver/language/serializer/ProblemSyntacticSequencer.java b/language-web/xtext-gen/org/eclipse/viatra/solver/language/serializer/ProblemSyntacticSequencer.java deleted file mode 100644 index 3f0a3f05..00000000 --- a/language-web/xtext-gen/org/eclipse/viatra/solver/language/serializer/ProblemSyntacticSequencer.java +++ /dev/null | |||
@@ -1,139 +0,0 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.26.0.M1 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.serializer; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import java.util.List; | ||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | import org.eclipse.viatra.solver.language.services.ProblemGrammarAccess; | ||
10 | import org.eclipse.xtext.IGrammarAccess; | ||
11 | import org.eclipse.xtext.RuleCall; | ||
12 | import org.eclipse.xtext.nodemodel.INode; | ||
13 | import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; | ||
14 | import org.eclipse.xtext.serializer.analysis.GrammarAlias.AlternativeAlias; | ||
15 | import org.eclipse.xtext.serializer.analysis.GrammarAlias.GroupAlias; | ||
16 | import org.eclipse.xtext.serializer.analysis.GrammarAlias.TokenAlias; | ||
17 | import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; | ||
18 | import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; | ||
19 | import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer; | ||
20 | |||
21 | @SuppressWarnings("all") | ||
22 | public class ProblemSyntacticSequencer extends AbstractSyntacticSequencer { | ||
23 | |||
24 | protected ProblemGrammarAccess grammarAccess; | ||
25 | protected AbstractElementAlias match_ClassDeclaration_FullStopKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_2__; | ||
26 | protected AbstractElementAlias match_ClassDeclaration_SemicolonKeyword_4_0_1_1_q; | ||
27 | protected AbstractElementAlias match_EnumDeclaration_FullStopKeyword_2_1_or___LeftCurlyBracketKeyword_2_0_0_RightCurlyBracketKeyword_2_0_2__; | ||
28 | protected AbstractElementAlias match_EnumDeclaration___CommaKeyword_2_0_1_2_0_or_SemicolonKeyword_2_0_1_2_1__q; | ||
29 | protected AbstractElementAlias match_PredicateDefinition_PredKeyword_0_0_1_q; | ||
30 | protected AbstractElementAlias match_ReferenceDeclaration_RefersKeyword_0_1_q; | ||
31 | |||
32 | @Inject | ||
33 | protected void init(IGrammarAccess access) { | ||
34 | grammarAccess = (ProblemGrammarAccess) access; | ||
35 | match_ClassDeclaration_FullStopKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_2__ = new AlternativeAlias(false, false, new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getClassDeclarationAccess().getLeftCurlyBracketKeyword_4_0_0()), new TokenAlias(false, false, grammarAccess.getClassDeclarationAccess().getRightCurlyBracketKeyword_4_0_2())), new TokenAlias(false, false, grammarAccess.getClassDeclarationAccess().getFullStopKeyword_4_1())); | ||
36 | match_ClassDeclaration_SemicolonKeyword_4_0_1_1_q = new TokenAlias(false, true, grammarAccess.getClassDeclarationAccess().getSemicolonKeyword_4_0_1_1()); | ||
37 | match_EnumDeclaration_FullStopKeyword_2_1_or___LeftCurlyBracketKeyword_2_0_0_RightCurlyBracketKeyword_2_0_2__ = new AlternativeAlias(false, false, new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getEnumDeclarationAccess().getLeftCurlyBracketKeyword_2_0_0()), new TokenAlias(false, false, grammarAccess.getEnumDeclarationAccess().getRightCurlyBracketKeyword_2_0_2())), new TokenAlias(false, false, grammarAccess.getEnumDeclarationAccess().getFullStopKeyword_2_1())); | ||
38 | match_EnumDeclaration___CommaKeyword_2_0_1_2_0_or_SemicolonKeyword_2_0_1_2_1__q = new AlternativeAlias(false, true, new TokenAlias(false, false, grammarAccess.getEnumDeclarationAccess().getCommaKeyword_2_0_1_2_0()), new TokenAlias(false, false, grammarAccess.getEnumDeclarationAccess().getSemicolonKeyword_2_0_1_2_1())); | ||
39 | match_PredicateDefinition_PredKeyword_0_0_1_q = new TokenAlias(false, true, grammarAccess.getPredicateDefinitionAccess().getPredKeyword_0_0_1()); | ||
40 | match_ReferenceDeclaration_RefersKeyword_0_1_q = new TokenAlias(false, true, grammarAccess.getReferenceDeclarationAccess().getRefersKeyword_0_1()); | ||
41 | } | ||
42 | |||
43 | @Override | ||
44 | protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) { | ||
45 | return ""; | ||
46 | } | ||
47 | |||
48 | |||
49 | @Override | ||
50 | protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) { | ||
51 | if (transition.getAmbiguousSyntaxes().isEmpty()) return; | ||
52 | List<INode> transitionNodes = collectNodes(fromNode, toNode); | ||
53 | for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) { | ||
54 | List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax); | ||
55 | if (match_ClassDeclaration_FullStopKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_2__.equals(syntax)) | ||
56 | emit_ClassDeclaration_FullStopKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_2__(semanticObject, getLastNavigableState(), syntaxNodes); | ||
57 | else if (match_ClassDeclaration_SemicolonKeyword_4_0_1_1_q.equals(syntax)) | ||
58 | emit_ClassDeclaration_SemicolonKeyword_4_0_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes); | ||
59 | else if (match_EnumDeclaration_FullStopKeyword_2_1_or___LeftCurlyBracketKeyword_2_0_0_RightCurlyBracketKeyword_2_0_2__.equals(syntax)) | ||
60 | emit_EnumDeclaration_FullStopKeyword_2_1_or___LeftCurlyBracketKeyword_2_0_0_RightCurlyBracketKeyword_2_0_2__(semanticObject, getLastNavigableState(), syntaxNodes); | ||
61 | else if (match_EnumDeclaration___CommaKeyword_2_0_1_2_0_or_SemicolonKeyword_2_0_1_2_1__q.equals(syntax)) | ||
62 | emit_EnumDeclaration___CommaKeyword_2_0_1_2_0_or_SemicolonKeyword_2_0_1_2_1__q(semanticObject, getLastNavigableState(), syntaxNodes); | ||
63 | else if (match_PredicateDefinition_PredKeyword_0_0_1_q.equals(syntax)) | ||
64 | emit_PredicateDefinition_PredKeyword_0_0_1_q(semanticObject, getLastNavigableState(), syntaxNodes); | ||
65 | else if (match_ReferenceDeclaration_RefersKeyword_0_1_q.equals(syntax)) | ||
66 | emit_ReferenceDeclaration_RefersKeyword_0_1_q(semanticObject, getLastNavigableState(), syntaxNodes); | ||
67 | else acceptNodes(getLastNavigableState(), syntaxNodes); | ||
68 | } | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * Ambiguous syntax: | ||
73 | * ('{' '}') | '.' | ||
74 | * | ||
75 | * This ambiguous syntax occurs at: | ||
76 | * name=Identifier (ambiguity) (rule end) | ||
77 | * superTypes+=[Relation|QualifiedName] (ambiguity) (rule end) | ||
78 | */ | ||
79 | protected void emit_ClassDeclaration_FullStopKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_2__(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
80 | acceptNodes(transition, nodes); | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * Ambiguous syntax: | ||
85 | * ';'? | ||
86 | * | ||
87 | * This ambiguous syntax occurs at: | ||
88 | * referenceDeclarations+=ReferenceDeclaration (ambiguity) '}' (rule end) | ||
89 | * referenceDeclarations+=ReferenceDeclaration (ambiguity) referenceDeclarations+=ReferenceDeclaration | ||
90 | */ | ||
91 | protected void emit_ClassDeclaration_SemicolonKeyword_4_0_1_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
92 | acceptNodes(transition, nodes); | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * Ambiguous syntax: | ||
97 | * ('{' '}') | '.' | ||
98 | * | ||
99 | * This ambiguous syntax occurs at: | ||
100 | * name=Identifier (ambiguity) (rule end) | ||
101 | */ | ||
102 | protected void emit_EnumDeclaration_FullStopKeyword_2_1_or___LeftCurlyBracketKeyword_2_0_0_RightCurlyBracketKeyword_2_0_2__(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
103 | acceptNodes(transition, nodes); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * Ambiguous syntax: | ||
108 | * (',' | ';')? | ||
109 | * | ||
110 | * This ambiguous syntax occurs at: | ||
111 | * literals+=EnumLiteral (ambiguity) '}' (rule end) | ||
112 | */ | ||
113 | protected void emit_EnumDeclaration___CommaKeyword_2_0_1_2_0_or_SemicolonKeyword_2_0_1_2_1__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
114 | acceptNodes(transition, nodes); | ||
115 | } | ||
116 | |||
117 | /** | ||
118 | * Ambiguous syntax: | ||
119 | * 'pred'? | ||
120 | * | ||
121 | * This ambiguous syntax occurs at: | ||
122 | * error?='error' (ambiguity) name=Identifier | ||
123 | */ | ||
124 | protected void emit_PredicateDefinition_PredKeyword_0_0_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
125 | acceptNodes(transition, nodes); | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * Ambiguous syntax: | ||
130 | * 'refers'? | ||
131 | * | ||
132 | * This ambiguous syntax occurs at: | ||
133 | * (rule start) (ambiguity) referenceType=[Relation|QualifiedName] | ||
134 | */ | ||
135 | protected void emit_ReferenceDeclaration_RefersKeyword_0_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | ||
136 | acceptNodes(transition, nodes); | ||
137 | } | ||
138 | |||
139 | } | ||