Skip to content

Commit

Permalink
Added more reserved words
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratstail91 committed Oct 27, 2024
1 parent e3bb7c0 commit b30a092
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions source/toy_lexer.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ const Toy_KeywordTypeTuple keywordTuples[] = {
{TOY_TOKEN_TYPE_INTEGER, "int"},
{TOY_TOKEN_TYPE_FLOAT, "float"},
{TOY_TOKEN_TYPE_STRING, "string"},
// TOY_TOKEN_TYPE_ARRAY,
// TOY_TOKEN_TYPE_DICTIONARY,
// TOY_TOKEN_TYPE_FUNCTION,
{TOY_TOKEN_TYPE_ARRAY, "array"},
{TOY_TOKEN_TYPE_TABLE, "table"},
{TOY_TOKEN_TYPE_FUNCTION, "function"}, //TODO: type??
{TOY_TOKEN_TYPE_OPAQUE, "opaque"},
{TOY_TOKEN_TYPE_ANY, "any"},

Expand Down
2 changes: 1 addition & 1 deletion source/toy_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static ParsingTuple parsingRulesetTable[] = {
{PREC_NONE,NULL,NULL},// TOY_TOKEN_TYPE_FLOAT,
{PREC_NONE,NULL,NULL},// TOY_TOKEN_TYPE_STRING,
{PREC_NONE,NULL,NULL},// TOY_TOKEN_TYPE_ARRAY,
{PREC_NONE,NULL,NULL},// TOY_TOKEN_TYPE_DICTIONARY,
{PREC_NONE,NULL,NULL},// TOY_TOKEN_TYPE_TABLE,
{PREC_NONE,NULL,NULL},// TOY_TOKEN_TYPE_FUNCTION,
{PREC_NONE,NULL,NULL},// TOY_TOKEN_TYPE_OPAQUE,
{PREC_NONE,NULL,NULL},// TOY_TOKEN_TYPE_ANY,
Expand Down
2 changes: 1 addition & 1 deletion source/toy_token_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ typedef enum Toy_TokenType {
TOY_TOKEN_TYPE_FLOAT,
TOY_TOKEN_TYPE_STRING,
TOY_TOKEN_TYPE_ARRAY,
TOY_TOKEN_TYPE_DICTIONARY,
TOY_TOKEN_TYPE_TABLE,
TOY_TOKEN_TYPE_FUNCTION,
TOY_TOKEN_TYPE_OPAQUE,
TOY_TOKEN_TYPE_ANY,
Expand Down

0 comments on commit b30a092

Please sign in to comment.