Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SableCC STUPS
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
SableCC STUPS
Commits
a2e433d2
Commit
a2e433d2
authored
8 years ago
by
hansen
Browse files
Options
Downloads
Plain Diff
Merge branch 'release/3.2.12'
parents
93197be1
f86b4773
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.gradle
+1
-1
1 addition, 1 deletion
build.gradle
src/main/resources/org/sablecc/sablecc/parser.txt
+19
-19
19 additions, 19 deletions
src/main/resources/org/sablecc/sablecc/parser.txt
with
20 additions
and
20 deletions
build.gradle
+
1
−
1
View file @
a2e433d2
...
...
@@ -3,7 +3,7 @@ apply plugin: 'eclipse'
apply
plugin:
'maven'
project
.
version
=
'3.2.1
1
'
project
.
version
=
'3.2.1
2
'
project
.
group
=
'de.hhu.stups'
project
.
archivesBaseName
=
"sablecc"
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/org/sablecc/sablecc/parser.txt
+
19
−
19
View file @
a2e433d2
...
...
@@ -41,8 +41,8 @@ public class Parser implements IParser
private final static int ACCEPT = 2;
private final static int ERROR = 3;
pr
ivate
ArrayList firstPopped = null;
pr
ivate
ArrayList lastPopped = null;
pr
otected
ArrayList firstPopped = null;
pr
otected
ArrayList lastPopped = null;
private ITokenListContainer lex;
public Parser( Lexer lexer)
...
...
@@ -55,12 +55,12 @@ public class Parser implements IParser
private Map<PositionedNode, SourcecodeRange> mapping = new HashMap<PositionedNode, SourcecodeRange>();
public Map<PositionedNode, SourcecodeRange> getMapping() { return this.mapping; }
pr
iva
te void checkResult(Object elementToCheck) {
pr
otec
te
d
void checkResult(Object elementToCheck) {
checkResult(elementToCheck, false);
}
pr
ivate
void checkResult(Object elementToCheck, boolean slurp) {
pr
otected
void checkResult(Object elementToCheck, boolean slurp) {
// nodes with no tokens or sub nodes at all may exist
if (this.firstPopped == null) {
return;
...
...
@@ -110,7 +110,7 @@ public class Parser implements IParser
}
pr
ivate
int findBeginPos(final ArrayList list,
pr
otected
int findBeginPos(final ArrayList list,
PositionedNode n) {
Object first = list.get(0);
if (!(first instanceof PositionedNode) && !(first instanceof IToken)) {
...
...
@@ -141,7 +141,7 @@ public class Parser implements IParser
}
pr
ivate
int findEndPos(final ArrayList list) {
pr
otected
int findEndPos(final ArrayList list) {
Object last = list.get(list.size() - 1);
if (!(last instanceof PositionedNode) && !(last instanceof IToken)) {
final List list2 = (List) last;
...
...
@@ -159,7 +159,7 @@ public class Parser implements IParser
return item.getEndIndex();
}
pr
ivate
int findIndex(final IToken token) {
pr
otected
int findIndex(final IToken token) {
final List<IToken> list = this.lex.getTokenList();
for (int i = list.size() - 1; i >= 0; i--) {
...
...
@@ -171,13 +171,13 @@ public class Parser implements IParser
return -1;
}
pr
ivate
SourcePosition createBeginPos(final int index) {
pr
otected
SourcePosition createBeginPos(final int index) {
final List<IToken> list = this.lex.getTokenList();
final IToken token = list.get(index);
return new SourcePosition(token.getLine(), token.getPos());
}
pr
ivate
SourcePosition createEndPos(final int index) {
pr
otected
SourcePosition createEndPos(final int index) {
final List<IToken> list = this.lex.getTokenList();
final IToken token = list.get(index);
return new SourcePosition(token.getLine(), token.getPos()
...
...
@@ -261,7 +261,7 @@ Macro:ParserCommon
return s.state;
}
pr
ivate
ArrayList pop()
pr
otected
ArrayList pop()
{
ArrayList list = ((State) this.stack.previous()).nodes;
if (this.firstPopped == null) {
...
...
@@ -395,7 +395,7 @@ Macro:ParserNewHeader
ArrayList new$0$() /* reduce $1$ */
protected
ArrayList new$0$() /* reduce $1$ */
{
this.firstPopped = null;
this.lastPopped = null;
...
...
@@ -529,7 +529,7 @@ Macro:ParserGotoTail
$
Macro:ParserErrorsHeader
pr
ivate
static String[] errorMessages;
pr
otected
static String[] errorMessages;
/* {
$
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment