summaryrefslogtreecommitdiff
path: root/g.peg
diff options
context:
space:
mode:
Diffstat (limited to 'g.peg')
-rw-r--r--g.peg4
1 files changed, 2 insertions, 2 deletions
diff --git a/g.peg b/g.peg
index 172938f..552d76f 100644
--- a/g.peg
+++ b/g.peg
@@ -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]