|
|
@ -330,7 +330,7 @@ describe("PEG.js grammar parser", function() {
|
|
|
|
expect("start = !'abcd'?").toParseAs(oneRuleGrammar(simpleNotOptional));
|
|
|
|
expect("start = !'abcd'?").toParseAs(oneRuleGrammar(simpleNotOptional));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// Canonical SuffixedExpression is "'ebcd'?".
|
|
|
|
// Canonical SuffixedExpression is "'abcd'?".
|
|
|
|
it("parses SuffixedExpression", function() {
|
|
|
|
it("parses SuffixedExpression", function() {
|
|
|
|
expect("start = 'abcd'\n?").toParseAs(oneRuleGrammar(optional));
|
|
|
|
expect("start = 'abcd'\n?").toParseAs(oneRuleGrammar(optional));
|
|
|
|
expect("start = 'abcd'" ).toParseAs(oneRuleGrammar(literalAbcd));
|
|
|
|
expect("start = 'abcd'" ).toParseAs(oneRuleGrammar(literalAbcd));
|
|
|
|