Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
f03deb33
Commit
f03deb33
authored
Jul 24, 2008
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed several parser issues
R=r OCL=13441 CL=13441
parent
cb9b1038
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
185 additions
and
72 deletions
+185
-72
usr/gri/gosrc/globals.go
usr/gri/gosrc/globals.go
+6
-1
usr/gri/gosrc/object.go
usr/gri/gosrc/object.go
+2
-2
usr/gri/gosrc/parser.go
usr/gri/gosrc/parser.go
+177
-69
No files found.
usr/gri/gosrc/globals.go
View file @
f03deb33
...
...
@@ -53,10 +53,10 @@ type Package struct {
type
Elem
struct
{
next
*
Elem
;
val
int
;
str
string
;
obj
*
Object
;
typ
*
Type
;
pkg
*
Package
;
}
...
...
@@ -190,6 +190,11 @@ func (L *List) TypAt(i int) *Type {
}
func
(
L
*
List
)
AddInt
(
val
int
)
{
L
.
Add
()
.
val
=
val
;
}
func
(
L
*
List
)
AddStr
(
str
string
)
{
L
.
Add
()
.
str
=
str
;
}
...
...
usr/gri/gosrc/object.go
View file @
f03deb33
...
...
@@ -7,10 +7,10 @@ package Object
import
Globals
"globals"
export
BAD
,
CONST
,
TYPE
,
VAR
,
FUNC
,
PACKAGE
,
PTYPE
export
BAD
,
CONST
,
TYPE
,
VAR
,
FUNC
,
PACKAGE
,
LABEL
,
PTYPE
const
/* kind */
(
BAD
=
iota
;
// error handling
CONST
;
TYPE
;
VAR
;
FUNC
;
PACKAGE
;
CONST
;
TYPE
;
VAR
;
FUNC
;
PACKAGE
;
LABEL
;
PTYPE
;
// primary type (import/export only)
)
...
...
usr/gri/gosrc/parser.go
View file @
f03deb33
This diff is collapsed.
Click to expand it.
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