Skip to content

Commit

Permalink
Improved formatting of g4-files (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
maritabreuer authored Dec 9, 2024
1 parent 585f2d6 commit 4f28976
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 348 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public String addActionForRuleBeforeRuleBody(ASTClassProd ast) {
String usageName = att.getName();
if (TransformationHelper.getMax(att).isPresent()
|| MCGrammarSymbolTableHelper.getMin(att).isPresent()) {
ret.append("\n" + "int " + getCounterName(usageName) + "=0;");
ret.append("int " + getCounterName(usageName) + "=0;\n");
}
}
return ret.toString();
Expand Down
Loading

0 comments on commit 4f28976

Please sign in to comment.