This commit is contained in:
josh committed 2023-07-12 22:24:40 -04:00
1 parent 7d7929a358
commit ae9f2e4efa
4 files changed
+64 -47

No files matched your search

+4
View File
@@ -34,6 +34,7 @@ EOF
expect(grammar.modulename).to eq "a.b"
expect(grammar.ptype).to eq "XYZ *"
expect(grammar.ptypes).to eq("default" => "XYZ *")
expect(grammar.prefix).to eq "p_"
o = grammar.tokens.find {|token| token.name == "while"}
expect(o).to_not be_nil
@@ -111,8 +112,11 @@ token code2 <<
>>
tokenid token_with_no_pattern;
prefix myparser_;
EOF
grammar = Grammar.new(input)
expect(grammar.prefix).to eq "myparser_"
o = grammar.tokens.find {|token| token.name == "code1"}
expect(o).to_not be_nil
+3
View File
@@ -379,4 +379,7 @@ EOF
build_parser
compile("spec/test_parsing_json.d", "spec/json_types.d")
end
it "allows generating multiple parsers in the same program" do
end
end