Skip to content

Commit

Permalink
fix(yakshalisp,prelude): update prelude with new keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
JaDogg committed Jun 23, 2024
1 parent 399385b commit 9deb5da
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions compiler/src/yaksha_lisp/prelude.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,20 +172,21 @@ const std::string YAKSHA_LISP_PRELUDE = R"<><><><>(
(def YK_TOKEN_KEYWORD_DIRECTIVE 28970)
(def YK_TOKEN_KEYWORD_ELIF 28971)
(def YK_TOKEN_KEYWORD_ELSE 28972)
(def YK_TOKEN_KEYWORD_FOR 28973)
(def YK_TOKEN_KEYWORD_FROM 28974)
(def YK_TOKEN_KEYWORD_IF 28975)
(def YK_TOKEN_KEYWORD_IMPORT 28976)
(def YK_TOKEN_KEYWORD_IN 28977)
(def YK_TOKEN_KEYWORD_MACROS 28978)
(def YK_TOKEN_KEYWORD_NOT 28979)
(def YK_TOKEN_KEYWORD_OR 28980)
(def YK_TOKEN_KEYWORD_PASS 28981)
(def YK_TOKEN_KEYWORD_RETURN 28982)
(def YK_TOKEN_KEYWORD_RUNTIMEFEATURE 28983)
(def YK_TOKEN_KEYWORD_STRUCT 28984)
(def YK_TOKEN_KEYWORD_TRY 28985)
(def YK_TOKEN_KEYWORD_WHILE 28986)
(def YK_TOKEN_KEYWORD_ENUM 28973)
(def YK_TOKEN_KEYWORD_FOR 28974)
(def YK_TOKEN_KEYWORD_FROM 28975)
(def YK_TOKEN_KEYWORD_IF 28976)
(def YK_TOKEN_KEYWORD_IMPORT 28977)
(def YK_TOKEN_KEYWORD_IN 28978)
(def YK_TOKEN_KEYWORD_MACROS 28979)
(def YK_TOKEN_KEYWORD_NOT 28980)
(def YK_TOKEN_KEYWORD_OR 28981)
(def YK_TOKEN_KEYWORD_PASS 28982)
(def YK_TOKEN_KEYWORD_RETURN 28983)
(def YK_TOKEN_KEYWORD_RUNTIMEFEATURE 28984)
(def YK_TOKEN_KEYWORD_STRUCT 28985)
(def YK_TOKEN_KEYWORD_TRY 28986)
(def YK_TOKEN_KEYWORD_WHILE 28987)
# =========== #
# Generating tokens
# =========== #
Expand Down Expand Up @@ -267,6 +268,7 @@ const std::string YAKSHA_LISP_PRELUDE = R"<><><><>(
(defun ykt_keyword_directive () (yk_create_token YK_TOKEN_KEYWORD_DIRECTIVE "directive"))
(defun ykt_keyword_elif () (yk_create_token YK_TOKEN_KEYWORD_ELIF "elif"))
(defun ykt_keyword_else () (yk_create_token YK_TOKEN_KEYWORD_ELSE "else"))
(defun ykt_keyword_enum () (yk_create_token YK_TOKEN_KEYWORD_ENUM "enum"))
(defun ykt_keyword_for () (yk_create_token YK_TOKEN_KEYWORD_FOR "for"))
(defun ykt_keyword_from () (yk_create_token YK_TOKEN_KEYWORD_FROM "from"))
(defun ykt_keyword_if () (yk_create_token YK_TOKEN_KEYWORD_IF "if"))
Expand Down

0 comments on commit 9deb5da

Please sign in to comment.