Commit f03deb33 authored by Robert Griesemer's avatar Robert Griesemer

- fixed several parser issues

R=r
OCL=13441
CL=13441
parent cb9b1038
......@@ -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;
}
......
......@@ -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)
)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment