xo-interpreter2: + nil + cons
This commit is contained in:
parent
caa8e31d02
commit
6f95f38373
4 changed files with 8 additions and 0 deletions
|
|
@ -134,6 +134,8 @@ namespace xo {
|
|||
/** token for @c "==" **/
|
||||
static Token cmpeq_token() { return Token(tokentype::tk_cmpeq); }
|
||||
|
||||
/** token representing keyword @c nil **/
|
||||
static Token nil_token() { return Token(tokentype::tk_nil); }
|
||||
/** token representing keyword @c type **/
|
||||
static Token type() { return Token(tokentype::tk_type); }
|
||||
/** token representing keyword @c def **/
|
||||
|
|
|
|||
|
|
@ -140,6 +140,9 @@ namespace xo {
|
|||
/** operator @c '!=' **/
|
||||
tk_cmpne,
|
||||
|
||||
/** keyword @c 'nil' **/
|
||||
tk_nil,
|
||||
|
||||
/** keyword @c 'type' **/
|
||||
tk_type,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue