Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tihonove committed Jan 16, 2025
1 parent 16440fc commit 751bfbc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/parseRng.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ exports.parseRng = function parseRng(xml) {
attributes: [],
};
if (top().elements != undefined) top().elements.push(result);
} else if (node.name === "grammar") {
result = {
type: "grammar",
name: "grammar",
elements: [],
attributes: [],
};
if (top().elements != undefined) top().elements.push(result);
} else if (node.name === "type") {
result = {
type: "type",
Expand Down

0 comments on commit 751bfbc

Please sign in to comment.