Skip to content

Commit

Permalink
base ast node
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Schadek committed May 21, 2019
1 parent 7798353 commit 461a1d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,11 @@ class Darser {
);

}

formattedWrite(ltw, "class Node {}\n\n");
foreach(rule; this.rules) {
generateEnum(ltw, rule);
formattedWrite(ltw, "class %s {\n", rule.name);
formattedWrite(ltw, "class %s : Node {\n", rule.name);
formattedWrite(ltw, "\t%sEnum ruleSelection;\n", rule.name);
generateMembers(ltw, rule);
genereateCTors(ltw, rule);
Expand Down

0 comments on commit 461a1d6

Please sign in to comment.