Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
ae905980
Commit
ae905980
authored
Jul 11, 2008
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed bug in parser.go
- added more tests SVN=126784
parent
bb9d53e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
parser.go
usr/gri/gosrc/parser.go
+12
-4
No files found.
usr/gri/gosrc/parser.go
View file @
ae905980
...
...
@@ -592,10 +592,14 @@ func (P *Parser) ParseIfStat() {
P
.
Trace
(
"IfStat"
);
P
.
Expect
(
Scanner
.
IF
);
if
P
.
tok
!=
Scanner
.
LBRACE
{
P
.
ParseSimpleStat
();
if
P
.
tok
!=
Scanner
.
SEMICOLON
{
P
.
ParseSimpleStat
();
}
if
P
.
tok
==
Scanner
.
SEMICOLON
{
P
.
Next
();
P
.
ParseExpression
();
if
P
.
tok
!=
Scanner
.
LBRACE
{
P
.
ParseExpression
();
}
}
}
P
.
ParseBlock
();
...
...
@@ -677,10 +681,14 @@ func (P *Parser) ParseSwitchStat() {
P
.
Trace
(
"SwitchStat"
);
P
.
Expect
(
Scanner
.
SWITCH
);
if
P
.
tok
!=
Scanner
.
LBRACE
{
P
.
ParseSimpleStat
();
if
P
.
tok
!=
Scanner
.
SEMICOLON
{
P
.
ParseSimpleStat
();
}
if
P
.
tok
==
Scanner
.
SEMICOLON
{
P
.
Next
();
P
.
ParseExpression
();
if
P
.
tok
!=
Scanner
.
LBRACE
{
P
.
ParseExpression
();
}
}
}
P
.
Expect
(
Scanner
.
LBRACE
);
...
...
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