You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
442 B
JavaScript
18 lines
442 B
JavaScript
describe("PEG.js grammar parser", function() {
|
|
it("works", function() {
|
|
expect(PEG.parser.parse('start = "a"')).toEqual({
|
|
type: "grammar",
|
|
initializer: null,
|
|
rules: [
|
|
{
|
|
type: "rule",
|
|
name: "start",
|
|
displayName: null,
|
|
expression: { type: "literal", value: "a", ignoreCase: false }
|
|
}
|
|
],
|
|
startRule: "start"
|
|
});
|
|
});
|
|
});
|