mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 17:34:34 +00:00
fmt improvement; Minor refactoring
This commit is contained in:
@@ -150,6 +150,13 @@ struct Token {
|
||||
};
|
||||
|
||||
Token empty_token = {Token_Invalid};
|
||||
Token blank_token = {Token_Identifier, {cast(u8 *)"_", 1}};
|
||||
|
||||
Token make_token_ident(String s) {
|
||||
Token t = {Token_Identifier};
|
||||
t.string = s;
|
||||
return t;
|
||||
}
|
||||
|
||||
|
||||
struct ErrorCollector {
|
||||
|
||||
Reference in New Issue
Block a user