diff options
| author | gingerBill <bill@gingerbill.org> | 2020-02-23 16:25:11 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-02-23 16:25:11 +0000 |
| commit | b13423d7f7b8ef07cfb7e5e03b6520a63f0861e3 (patch) | |
| tree | 9f1d7ee871a12f437e551689db77e44798d0ccf9 /src/tokenizer.cpp | |
| parent | 703404a54d2043a8e45ecb1efa6553e45cd516b9 (diff) | |
Global variable initialization support
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 1854020f9..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 { |