diff options
author | 2020-05-08 21:02:33 +0200 | |
---|---|---|
committer | 2020-05-08 21:02:33 +0200 | |
commit | 771e3773bb7ebbf6712724cb2b248467c9cc2e3c (patch) | |
tree | b1724af24b9c583b2780c7a2fe76e76fd174359d /Application/org.eclipse.viatra.solver.language.ide/src | |
parent | Update solver language grammar (diff) | |
download | VIATRA-Generator-771e3773bb7ebbf6712724cb2b248467c9cc2e3c.tar.gz VIATRA-Generator-771e3773bb7ebbf6712724cb2b248467c9cc2e3c.tar.zst VIATRA-Generator-771e3773bb7ebbf6712724cb2b248467c9cc2e3c.zip |
Synthetic tokens for solver language
Diffstat (limited to 'Application/org.eclipse.viatra.solver.language.ide/src')
-rw-r--r-- | Application/org.eclipse.viatra.solver.language.ide/src/org/eclipse/viatra/solver/language/ide/contentassist/antlr/SolverLanguageTokenSource.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Application/org.eclipse.viatra.solver.language.ide/src/org/eclipse/viatra/solver/language/ide/contentassist/antlr/SolverLanguageTokenSource.java b/Application/org.eclipse.viatra.solver.language.ide/src/org/eclipse/viatra/solver/language/ide/contentassist/antlr/SolverLanguageTokenSource.java new file mode 100644 index 00000000..07c0af5d --- /dev/null +++ b/Application/org.eclipse.viatra.solver.language.ide/src/org/eclipse/viatra/solver/language/ide/contentassist/antlr/SolverLanguageTokenSource.java | |||
@@ -0,0 +1,39 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.21.0 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.ide.contentassist.antlr; | ||
5 | |||
6 | import org.antlr.runtime.Token; | ||
7 | import org.antlr.runtime.TokenSource; | ||
8 | import org.eclipse.viatra.solver.language.ide.contentassist.antlr.internal.InternalSolverLanguageParser; | ||
9 | import org.eclipse.xtext.parser.antlr.AbstractIndentationTokenSource; | ||
10 | |||
11 | public class SolverLanguageTokenSource extends AbstractIndentationTokenSource { | ||
12 | |||
13 | public SolverLanguageTokenSource(TokenSource delegate) { | ||
14 | super(delegate); | ||
15 | } | ||
16 | |||
17 | @Override | ||
18 | protected boolean shouldSplitTokenImpl(Token token) { | ||
19 | // TODO Review assumption | ||
20 | return token.getType() == InternalSolverLanguageParser.RULE_WS; | ||
21 | } | ||
22 | |||
23 | @Override | ||
24 | protected int getBeginTokenType() { | ||
25 | // TODO Implement me | ||
26 | throw new UnsupportedOperationException("Implement me"); | ||
27 | } | ||
28 | |||
29 | @Override | ||
30 | protected int getEndTokenType() { | ||
31 | // TODO Implement me | ||
32 | throw new UnsupportedOperationException("Implement me"); | ||
33 | } | ||
34 | |||
35 | @Override | ||
36 | protected boolean shouldEmitPendingEndTokens() { | ||
37 | return false; | ||
38 | } | ||
39 | } | ||