Introduce "pre" and "post" asserts.

This commit is contained in:
Nigel Tao committed 2017-05-14 11:27:46 +10:00
1 parent dd06f67f7a
commit 1d3ae23418
7 files changed
+120 -44

No files matched your search

+4
View File
@@ -192,6 +192,8 @@ const (
IDUse = ID(0x6A<<KeyShift | FlagsOther)
IDVar = ID(0x6B<<KeyShift | FlagsOther)
IDIdeal = ID(0x6C<<KeyShift | FlagsOther)
IDPre = ID(0x6D<<KeyShift | FlagsOther)
IDPost = ID(0x6E<<KeyShift | FlagsOther)
IDFalse = ID(0x90<<KeyShift | FlagsLiteral | FlagsImplicitSemicolon)
IDTrue = ID(0x91<<KeyShift | FlagsLiteral | FlagsImplicitSemicolon)
@@ -319,6 +321,8 @@ var builtInsByKey = [nBuiltInKeys]struct {
IDUse >> KeyShift: {"use", IDUse},
IDVar >> KeyShift: {"var", IDVar},
IDIdeal >> KeyShift: {"ideal", IDIdeal},
IDPre >> KeyShift: {"pre", IDPre},
IDPost >> KeyShift: {"post", IDPost},
IDFalse >> KeyShift: {"false", IDFalse},
IDTrue >> KeyShift: {"true", IDTrue},