Rename result_type to ptype, parser result to pvalue

This commit is contained in:
josh committed 2022-11-12 13:29:10 -05:00
1 parent bca0a14371
commit 8dc27686aa
5 files changed
+34 -34

No files matched your search

+2 -2
View File
@@ -263,7 +263,7 @@ EOF
it "parses lists" do
write_grammar <<EOF
result_type uint;
ptype uint;
token a;
Start -> As <<
$$ = $1;
@@ -320,7 +320,7 @@ EOF
it "allows storing a result value for the lexer" do
write_grammar <<EOF
result_type ulong;
ptype ulong;
token word /[a-z]+/ <<
$$ = match.length;
>>