aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.c
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2022-04-08 08:25:48 -0300
committerBad Diode <bd@badd10de.dev>2022-04-08 08:25:48 -0300
commit55ecfb3b7713172f76ddbff022fa4d6a80d0661a (patch)
tree6a6baae20d67824d5f79b801b27f58cc967a3ba1 /src/parser.c
parent9f934cbc0f0fd60a6938ac1c4c84edc270de94ca (diff)
downloadbdl-55ecfb3b7713172f76ddbff022fa4d6a80d0661a.tar.gz
bdl-55ecfb3b7713172f76ddbff022fa4d6a80d0661a.zip
Add initial implementation of AST vizualization
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c
index cf7aebb..0594d2c 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -54,7 +54,7 @@ parse_number(Parser *parser) {
54 if (c == '+') { 54 if (c == '+') {
55 c = sv_next(&tok.value); 55 c = sv_next(&tok.value);
56 } 56 }
57 if (c == '0') { 57 if (c == '0' && sv_peek(&tok.value) != '\0') {
58 c = sv_next(&tok.value); 58 c = sv_next(&tok.value);
59 if (c == 'x') { 59 if (c == 'x') {
60 base = 16; 60 base = 16;