diff options
Diffstat (limited to 'g.peg')
-rw-r--r-- | g.peg | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,7 +24,7 @@ static const char *dbg_str[] = { "Evaluating rule", "Matched rule", "Abandoning expr <- l:list { $$ = l; } / n:number { $$ = n; } - / s:symbol { $$ = s; } + / i:ident { $$ = i; } / t:string { $$ = t; } list <- { $$ = astnode_new_list(); } @@ -34,7 +34,7 @@ list <- { $$ = astnode_new_list(); } ')' _ number <- < [0-9]+ > (! ident_char) _ { $$ = astnode_new_num(atoi($1)); } -symbol <- < ident_char+ > _ { $$ = astnode_new_symbol(strdup($1)); } +ident <- < ident_char+ > _ { $$ = astnode_new_ident(strdup($1)); } string <- '"' < [^"]+ > '"' { $$ = astnode_new_string(strdup($1)); } ident_char <- [-_a-zA-Z'+*0-9] |