From a03973653262fbbfed7ce42dfa39646d16bdc98f Mon Sep 17 00:00:00 2001 From: ubq323 Date: Fri, 21 Jun 2024 00:25:55 +0100 Subject: while loops, comparisons, modulo, fizzbuzz --- g.peg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g.peg') 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]* -- cgit v1.2.3