Skip to content
Snippets Groups Projects
Commit fb99eb6c authored by Michael Leuschel's avatar Michael Leuschel
Browse files

Merge branch 'develop'

parents 1f895764 e62228e9
Branches
Tags 3.3.3
No related merge requests found
Pipeline #85019 passed
...@@ -6,14 +6,14 @@ apply plugin: 'signing' ...@@ -6,14 +6,14 @@ apply plugin: 'signing'
allprojects { allprojects {
project.group = 'de.hhu.stups' project.group = 'de.hhu.stups'
project.version = '3.3.2' project.version = '3.3.3'
project.ext.isSnapshot = project.version.endsWith("-SNAPSHOT") project.ext.isSnapshot = project.version.endsWith("-SNAPSHOT")
ext."signing.secretKeyRingFile" = rootProject.file("secring.gpg").absolutePath ext."signing.secretKeyRingFile" = rootProject.file("secring.gpg").absolutePath
} }
wrapper { wrapper {
gradleVersion = "7.2" gradleVersion = "7.4.1"
} }
repositories { repositories {
......
No preview for this file type
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
...@@ -175,6 +175,8 @@ public class Lexer implements ITokenListContainer ...@@ -175,6 +175,8 @@ public class Lexer implements ITokenListContainer
int low = 0; int low = 0;
int high = tmp1.length - 1; int high = tmp1.length - 1;
// find next DFA state depending on character c
// an entry {Low, Up, Id} -> means if Low <= c <= Up -> goto state Id
while(low <= high) while(low <= high)
{ {
int middle = (low + high) / 2; int middle = (low + high) / 2;
......
...@@ -24,8 +24,6 @@ import java.io.IOException; ...@@ -24,8 +24,6 @@ import java.io.IOException;
@SuppressWarnings({"rawtypes","unchecked","unused"}) @SuppressWarnings({"rawtypes","unchecked","unused"})
public class Parser implements IParser public class Parser implements IParser
{ {
public final Analysis ignoredTokens = new AnalysisAdapter();
protected ArrayList nodeList; protected ArrayList nodeList;
private final Lexer lexer; private final Lexer lexer;
...@@ -289,23 +287,12 @@ Macro:ParserCommon ...@@ -289,23 +287,12 @@ Macro:ParserCommon
this.getMapping().clear(); this.getMapping().clear();
push(0, null$0$); push(0, null$0$);
List<Node> ign = null;
while(true) while(true)
{ {
while(index(this.lexer.peek()) == -1) while(index(this.lexer.peek()) == -1)
{ {
if(ign == null) // this is an ignored token
{ this.lexer.next();
ign = new LinkedList<Node>();
}
ign.add(this.lexer.next());
}
if(ign != null)
{
this.ignoredTokens.setIn(this.lexer.peek(), ign);
ign = null;
} }
this.last_pos = this.lexer.peek().getPos(); this.last_pos = this.lexer.peek().getPos();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment