diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-16 15:38:24 +0630 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-16 15:38:24 +0630 |
commit | 05136fdd25bf065f81ed20f74d402592a7c6e8f2 (patch) | |
tree | 7f8903864084d77b10f90912b6bf880cd6167078 /asm/lexer.cpp | |
parent | 1e7f1bdee91324613a1675642775d6ed32d7e94d (diff) | |
download | ovm-05136fdd25bf065f81ed20f74d402592a7c6e8f2.tar.gz ovm-05136fdd25bf065f81ed20f74d402592a7c6e8f2.tar.bz2 ovm-05136fdd25bf065f81ed20f74d402592a7c6e8f2.zip |
Fixed examples for changes in lexer
Name assigned to %CONST is the next symbol in stream, not the symbol
attached to it.
Diffstat (limited to 'asm/lexer.cpp')
-rw-r--r-- | asm/lexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asm/lexer.cpp b/asm/lexer.cpp index 991e551..e2efdfe 100644 --- a/asm/lexer.cpp +++ b/asm/lexer.cpp @@ -50,7 +50,7 @@ pair<token_t, lerr_t> tokenise_symbol(string_view &source, size_t &column, token_t t{}; - if (initial_match(sym, "%CONST")) + if (sym == "%CONST") { t.type = token_type_t::PP_CONST; } |