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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
SableCC STUPS
Commits
342e2728
You need to sign in or sign up before continuing.
Commit
342e2728
authored
3 years ago
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Use generics in GenTokens
parent
6d35f86f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/sablecc/sablecc/GenTokens.java
+5
-5
5 additions, 5 deletions
src/main/java/org/sablecc/sablecc/GenTokens.java
with
5 additions
and
5 deletions
src/main/java/org/sablecc/sablecc/GenTokens.java
+
5
−
5
View file @
342e2728
...
@@ -10,7 +10,7 @@ package org.sablecc.sablecc;
...
@@ -10,7 +10,7 @@ package org.sablecc.sablecc;
import
org.sablecc.sablecc.analysis.*
;
import
org.sablecc.sablecc.analysis.*
;
import
org.sablecc.sablecc.node.*
;
import
org.sablecc.sablecc.node.*
;
import
java.io.*
;
import
java.io.*
;
import
java.util.
Linked
List
;
import
java.util.List
;
public
class
GenTokens
extends
DepthFirstAdapter
public
class
GenTokens
extends
DepthFirstAdapter
{
{
...
@@ -71,16 +71,16 @@ public class GenTokens extends DepthFirstAdapter
...
@@ -71,16 +71,16 @@ public class GenTokens extends DepthFirstAdapter
ARegExp
regExp
=
(
ARegExp
)
node
.
getRegExp
();
ARegExp
regExp
=
(
ARegExp
)
node
.
getRegExp
();
Li
nkedList
concats
=
regExp
.
getConcats
();
Li
st
<
PConcat
>
concats
=
regExp
.
getConcats
();
if
(
concats
.
size
()
==
1
)
if
(
concats
.
size
()
==
1
)
{
{
AConcat
concat
=
(
AConcat
)
concats
.
get
First
();
AConcat
concat
=
(
AConcat
)
concats
.
get
(
0
);
Li
nkedList
unExps
=
concat
.
getUnExps
();
Li
st
<
PUnExp
>
unExps
=
concat
.
getUnExps
();
if
(
unExps
.
size
()
==
1
)
if
(
unExps
.
size
()
==
1
)
{
{
AUnExp
unExp
=
(
AUnExp
)
unExps
.
get
First
();
AUnExp
unExp
=
(
AUnExp
)
unExps
.
get
(
0
);
PBasic
basic
=
unExp
.
getBasic
();
PBasic
basic
=
unExp
.
getBasic
();
...
...
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