From cf41f0406b5fb2a51281a5562e4350e1022f4361 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Thu, 8 Jun 2017 13:12:43 +1000 Subject: [PATCH] Add an nptr keyword. This just changes the tokenizer. Changing the parser, checker, code generator, etc. are future changes. --- lang/token/list.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lang/token/list.go b/lang/token/list.go index b099769c..704cb6b0 100644 --- a/lang/token/list.go +++ b/lang/token/list.go @@ -197,13 +197,14 @@ const ( KeyStruct = Key(IDStruct >> KeyShift) KeyUse = Key(IDUse >> KeyShift) KeyVar = Key(IDVar >> KeyShift) - KeyIdeal = Key(IDIdeal >> KeyShift) + KeyNptr = Key(IDNptr >> KeyShift) KeyPre = Key(IDPre >> KeyShift) KeyInv = Key(IDInv >> KeyShift) KeyPost = Key(IDPost >> KeyShift) KeyVia = Key(IDVia >> KeyShift) KeyPub = Key(IDPub >> KeyShift) KeyPri = Key(IDPri >> KeyShift) + KeyIdeal = Key(IDIdeal >> KeyShift) KeyFalse = Key(IDFalse >> KeyShift) KeyTrue = Key(IDTrue >> KeyShift) @@ -342,13 +343,14 @@ const ( IDStruct = ID(0x69<