add: more token

This commit is contained in:
Eatswap 2022-12-10 21:04:44 +08:00
parent 079d40eef3
commit e53f559f36
Signed by: Eatswap
GPG Key ID: BE661106A1F3FA0B
3 changed files with 18 additions and 0 deletions

View File

@ -48,6 +48,12 @@ print (print|PRINT)
loop (loop|LOOP)
setq (setq|SETQ)
quote (quote|QUOTE)
for (for|FOR)
in (in|IN)
from (from|FROM)
to (to|TO)
dotimes (dotimes|DOTIMES)
dolist (dolist|DOLIST)
defconstant (defconstant|DEFCONSTANT)
%%

View File

@ -75,6 +75,12 @@ namespace DragonLisp {
LOOP "loop"
SETQ "setq"
QUOTE "quote"
FOR "for"
IN "in"
FROM "from"
TO "to"
DOTIMES "dotimes"
DOLIST "dolist"
DEFCONSTANT "defconstant"
;

View File

@ -41,6 +41,12 @@ enum Token {
LOOP,
SETQ,
QUOTE,
FOR,
IN,
FROM,
TO,
DOTIMES,
DOLIST,
DEFCONSTANT,
};