Add via keyword and named args.

This commit is contained in:
Nigel Tao committed 2017-05-19 16:14:05 +10:00
1 parent 9719fab535
commit 06eaadb1d6
7 files changed
+86 -27

No files matched your search

+3
View File
@@ -194,6 +194,7 @@ const (
KeyIdeal = Key(IDIdeal >> KeyShift)
KeyPre = Key(IDPre >> KeyShift)
KeyPost = Key(IDPost >> KeyShift)
KeyVia = Key(IDVia >> KeyShift)
KeyFalse = Key(IDFalse >> KeyShift)
KeyTrue = Key(IDTrue >> KeyShift)
@@ -317,6 +318,7 @@ const (
IDIdeal = ID(0x6C<<KeyShift | FlagsOther)
IDPre = ID(0x6D<<KeyShift | FlagsOther)
IDPost = ID(0x6E<<KeyShift | FlagsOther)
IDVia = ID(0x6F<<KeyShift | FlagsOther)
IDFalse = ID(0x90<<KeyShift | FlagsLiteral | FlagsImplicitSemicolon)
IDTrue = ID(0x91<<KeyShift | FlagsLiteral | FlagsImplicitSemicolon)
@@ -446,6 +448,7 @@ var builtInsByKey = [nBuiltInKeys]struct {
KeyIdeal: {"ideal", IDIdeal},
KeyPre: {"pre", IDPre},
KeyPost: {"post", IDPost},
KeyVia: {"via", IDVia},
KeyFalse: {"false", IDFalse},
KeyTrue: {"true", IDTrue},