mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 08:47:28 +01:00
Introduce explicit "var x T" syntax.
This makes type checking easier and more explicit.
This commit is contained in:
1 parent
4615d0d670
commit
56de3228e1
6 files changed
+95
-28
No files matched your search
@@ -178,6 +178,7 @@ const (
|
||||
IDContinue = ID(0x68<<KeyShift | FlagsOther | FlagsImplicitSemicolon)
|
||||
IDStruct = ID(0x69<<KeyShift | FlagsOther)
|
||||
IDUse = ID(0x6A<<KeyShift | FlagsOther)
|
||||
IDVar = ID(0x6B<<KeyShift | FlagsOther)
|
||||
|
||||
IDFalse = ID(0x90<<KeyShift | FlagsLiteral | FlagsImplicitSemicolon)
|
||||
IDTrue = ID(0x91<<KeyShift | FlagsLiteral | FlagsImplicitSemicolon)
|
||||
@@ -301,6 +302,7 @@ var builtInsByKey = [nBuiltInKeys]struct {
|
||||
IDContinue >> KeyShift: {"continue", IDContinue},
|
||||
IDStruct >> KeyShift: {"struct", IDStruct},
|
||||
IDUse >> KeyShift: {"use", IDUse},
|
||||
IDVar >> KeyShift: {"var", IDVar},
|
||||
|
||||
IDFalse >> KeyShift: {"false", IDFalse},
|
||||
IDTrue >> KeyShift: {"true", IDTrue},
|
||||
|
||||
Reference in new issue
Block a user