Parse a "ptr T" type.

This commit is contained in:
Nigel Tao committed 2017-05-04 12:44:06 +10:00
1 parent 1617d5eb34
commit 8dbc476375
3 files changed
+51 -7

No files matched your search

+2
View File
@@ -132,6 +132,7 @@ const (
// TODO: sort these by name, when the list has stabilized.
IDFunc = ID(0xA0<<idShift | FlagsOther)
IDPtr = ID(0xA1<<idShift | FlagsOther)
IDFalse = ID(0xD0<<idShift | FlagsLiteral | FlagsImplicitSemicolon)
IDTrue = ID(0xD1<<idShift | FlagsLiteral | FlagsImplicitSemicolon)
@@ -206,6 +207,7 @@ var builtInsByKey = [nBuiltInKeys]struct {
IDAs >> idShift: {"as", IDAs},
IDFunc >> idShift: {"func", IDFunc},
IDPtr >> idShift: {"ptr", IDPtr},
IDFalse >> idShift: {"false", IDFalse},
IDTrue >> idShift: {"true", IDTrue},