diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2020-03-26 17:41:38 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-26 17:41:38 +0000 |
| commit | 6bbecbe895a7b413dee61da772586be4e3138174 (patch) | |
| tree | a86e716cb2a519a7bff7a320821fbde7abd8673e /src/tokenizer.cpp | |
| parent | 7909872877fd5c82c29df711f160838a7a4e59e1 (diff) | |
| parent | b21993a1c470a533a83e5b01274d3b026fb34f9b (diff) | |
Merge pull request #595 from odin-lang/llvm-integration
LLVM C API Integration
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 19cb9b9aa..5ac590b22 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -179,6 +179,10 @@ Token make_token_ident(String s) { Token t = {Token_Ident, s}; return t; } +Token make_token_ident(char const *s) { + Token t = {Token_Ident, make_string_c(s)}; + return t; +} struct ErrorCollector { @@ -904,7 +908,7 @@ Token tokenizer_get_token(Tokenizer *t) { } if (token.kind == Token_Ident && token.string == "notin") { - token.kind = Token_not_in; + token.kind = Token_not_in; } } |