Add alias to ast
This commit is contained in:
@@ -30,6 +30,7 @@ typedef struct {
|
||||
static const KeywordMap keywords[] = {
|
||||
{"module", TOKEN_MODULE},
|
||||
{"import", TOKEN_IMPORT},
|
||||
{"alias", TOKEN_ALIAS},
|
||||
{"void", TOKEN_VOID},
|
||||
};
|
||||
|
||||
@@ -220,6 +221,7 @@ Token tokenstream_next(TokenStream* ts) {
|
||||
case ']': return create_token(ts, TOKEN_BRACKET_CLOSE, start_text, 1, start_line, start_column, line_start);
|
||||
case ',': return create_token(ts, TOKEN_COMMA, start_text, 1, start_line, start_column, line_start);
|
||||
case ';': return create_token(ts, TOKEN_SEMICOLON, start_text, 1, start_line, start_column, line_start);
|
||||
case '=': return create_token(ts, TOKEN_ASSIGN, start_text, 1, start_line, start_column, line_start);
|
||||
}
|
||||
|
||||
/* Keywords and identifiers */
|
||||
|
||||
Reference in New Issue
Block a user