diff options
author | ubq323 <ubq323@ubq323.website> | 2024-06-21 00:25:55 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-06-21 00:25:55 +0100 |
commit | a03973653262fbbfed7ce42dfa39646d16bdc98f (patch) | |
tree | fcf222d1e67b715af8173fda8edcab3b6c0793cd /g.peg | |
parent | f331192861d8ba02af7fd47f2e0c6d6db7515007 (diff) |
while loops, comparisons, modulo, fizzbuzz
Diffstat (limited to 'g.peg')
-rw-r--r-- | g.peg | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]* |