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
f03deb33
Commit
f03deb33
authored
Jul 25, 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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
globals.go
usr/gri/gosrc/globals.go
+6
-1
object.go
usr/gri/gosrc/object.go
+2
-2
parser.go
usr/gri/gosrc/parser.go
+0
-0
No files found.
usr/gri/gosrc/globals.go
View file @
f03deb33
...
@@ -53,10 +53,10 @@ type Package struct {
...
@@ -53,10 +53,10 @@ type Package struct {
type
Elem
struct
{
type
Elem
struct
{
next
*
Elem
;
next
*
Elem
;
val
int
;
str
string
;
str
string
;
obj
*
Object
;
obj
*
Object
;
typ
*
Type
;
typ
*
Type
;
pkg
*
Package
;
}
}
...
@@ -190,6 +190,11 @@ func (L *List) TypAt(i int) *Type {
...
@@ -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
)
{
func
(
L
*
List
)
AddStr
(
str
string
)
{
L
.
Add
()
.
str
=
str
;
L
.
Add
()
.
str
=
str
;
}
}
...
...
usr/gri/gosrc/object.go
View file @
f03deb33
...
@@ -7,10 +7,10 @@ package Object
...
@@ -7,10 +7,10 @@ package Object
import
Globals
"globals"
import
Globals
"globals"
export
BAD
,
CONST
,
TYPE
,
VAR
,
FUNC
,
PACKAGE
,
PTYPE
export
BAD
,
CONST
,
TYPE
,
VAR
,
FUNC
,
PACKAGE
,
LABEL
,
PTYPE
const
/* kind */
(
const
/* kind */
(
BAD
=
iota
;
// error handling
BAD
=
iota
;
// error handling
CONST
;
TYPE
;
VAR
;
FUNC
;
PACKAGE
;
CONST
;
TYPE
;
VAR
;
FUNC
;
PACKAGE
;
LABEL
;
PTYPE
;
// primary type (import/export only)
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