Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs444
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xun Yang
cs444
Commits
eb9e0dcd
Commit
eb9e0dcd
authored
5 years ago
by
Nicholas Robinson
Browse files
Options
Downloads
Patches
Plain Diff
remove forupdate to pass more marks
parent
51055ec1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cfg/lr1GenInput.cfg
+4
-6
4 additions, 6 deletions
cfg/lr1GenInput.cfg
cfg/trans.txt
+15311
-15263
15311 additions, 15263 deletions
cfg/trans.txt
with
15315 additions
and
15269 deletions
cfg/lr1GenInput.cfg
+
4
−
6
View file @
eb9e0dcd
...
...
@@ -62,7 +62,7 @@ COMMA
PERIOD
COMPID
IMPORTALL
9
2
9
1
start
packageDcl
importDcls
...
...
@@ -120,7 +120,6 @@ ifElseStatement
ifStatement
forStatement
forInit
forupdate
returnStatement
statementNoShortIf
ifElseStatementNoShortIf
...
...
@@ -156,7 +155,7 @@ postfixExpr
primaryNoArrayAccess
arrayID
start
19
9
19
8
start
BOF
packageDcl
importDcls
topDcls
EOF
packageDcl
PACKAGE
name
SEMICO
packageDcl
PACKAGE
ID
SEMICO
...
...
@@ -268,10 +267,9 @@ statementExpr methodInvoc
whileStatement
WHILE
LPAREN
expr
RPAREN
statement
ifElseStatement
IF
LPAREN
expr
RPAREN
statementNoShortIf
ELSE
statement
ifStatement
IF
LPAREN
expr
RPAREN
statement
forStatement
FOR
LPAREN
forInit
SEMICO
expr
SEMICO
for
update
RPAREN
statement
forStatement
FOR
LPAREN
forInit
SEMICO
expr
SEMICO
for
Init
RPAREN
statement
forInit
statementExpr
forInit
variableDcl
forupdate
statementExpr
returnStatement
RETURN
expr
SEMICO
returnStatement
RETURN
SEMICO
statementNoShortIf
noTailStatement
...
...
@@ -280,7 +278,7 @@ statementNoShortIf whileStatementNoShortIf
statementNoShortIf
forStatementNoShortIf
ifElseStatementNoShortIf
IF
LPAREN
expr
RPAREN
statementNoShortIf
ELSE
statementNoShortIf
whileStatementNoShortIf
WHILE
LPAREN
expr
RPAREN
statementNoShortIf
forStatementNoShortIf
FOR
LPAREN
forInit
SEMICO
expr
SEMICO
for
update
RPAREN
statementNoShortIf
forStatementNoShortIf
FOR
LPAREN
forInit
SEMICO
expr
SEMICO
for
Init
RPAREN
statementNoShortIf
primaryAndArray
primary
primaryAndArray
arrayCreationExpr
arrayCreationExpr
NEW
primitiveType
LSQRBRACK
expr
RSQRBRACK
...
...
This diff is collapsed.
Click to expand it.
cfg/trans.txt
+
15311
−
15263
View file @
eb9e0dcd
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
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