Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CUP Eclipse Plugin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Schwarz
CUP Eclipse Plugin
Commits
97758e5c
Commit
97758e5c
authored
Jan 26, 2016
by
Michael Schwarz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed error in simulated effect of prec
parent
3ad29e2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
CupPlugin/src/de/tum/in/www2/cupplugin/views/CupConflictsView.java
.../src/de/tum/in/www2/cupplugin/views/CupConflictsView.java
+12
-2
No files found.
CupPlugin/src/de/tum/in/www2/cupplugin/views/CupConflictsView.java
View file @
97758e5c
...
...
@@ -302,7 +302,16 @@ public class CupConflictsView extends FailableView implements ICupEditorPageVisi
}
sb
.
append
(
"precedence "
);
sb
.
append
(
p
.
getSecond
().
toString
().
toLowerCase
());
if
(
p
.
getSecond
()
==
Precedence
.
Type
.
NoPrec
){
// We insert nonassoc in here. This should never matter
sb
.
append
(
Precedence
.
Type
.
NonAssoc
.
toString
().
toLowerCase
());
}
else
{
sb
.
append
(
p
.
getSecond
().
toString
().
toLowerCase
());
}
sb
.
append
(
" "
);
sb
.
append
(
p
.
getFirst
().
name
());
sb
.
append
(
"; // Inserted by Eclipse plugin"
);
...
...
@@ -328,7 +337,8 @@ public class CupConflictsView extends FailableView implements ICupEditorPageVisi
// This works because we have guarantee that the graph is a DAG
HashSet
<
terminal
>
toCheck
=
new
HashSet
<>();
if
(
edges
.
get
(
over
).
size
()
==
0
){
return
true
;
// if the node has no outgoing node, than nothing has precedence over it
return
false
;
}
toCheck
.
addAll
(
edges
.
get
(
over
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment