summaryrefslogtreecommitdiff
path: root/g.peg
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-21 00:25:55 +0100
committerubq323 <ubq323@ubq323.website>2024-06-21 00:25:55 +0100
commita03973653262fbbfed7ce42dfa39646d16bdc98f (patch)
treefcf222d1e67b715af8173fda8edcab3b6c0793cd /g.peg
parentf331192861d8ba02af7fd47f2e0c6d6db7515007 (diff)
while loops, comparisons, modulo, fizzbuzz
Diffstat (limited to 'g.peg')
-rw-r--r--g.peg2
1 files changed, 1 insertions, 1 deletions
diff --git a/g.peg b/g.peg
index c026e62..d6bca5c 100644
--- a/g.peg
+++ b/g.peg
@@ -39,7 +39,7 @@ number <- < [0-9]+ > (! ident_char) _ { $$ = astnode_new_num(atoi($1)); }
ident <- < ident_char+ > _ { $$ = astnode_new_ident(strdup($1)); }
string <- '"' < [^"]+ > '"' _ { $$ = astnode_new_string(strdup($1)); }
-ident_char <- [-_a-zA-Z'+*0-9]
+ident_char <- [-_a-zA-Z'+*/\\%=0-9<>]
_ <- [ \t\n]*