diff --git a/src/main/java/org/sablecc/sablecc/GenerateAlternativeCodeForParser.java b/src/main/java/org/sablecc/sablecc/GenerateAlternativeCodeForParser.java index f4ee02adf340d902c999a329a5b32ac83df9b20c..3b12dda2893d76df184160d590513d839b55ccf6 100644 --- a/src/main/java/org/sablecc/sablecc/GenerateAlternativeCodeForParser.java +++ b/src/main/java/org/sablecc/sablecc/GenerateAlternativeCodeForParser.java @@ -63,7 +63,7 @@ public class GenerateAlternativeCodeForParser extends DepthFirstAdapter public void caseAElem(final AElem node) { popCount++; } - + private String lookupInternalTypeName(Node term) { String name = simpleTermTransformMap.get(term); if(name != null) @@ -115,7 +115,7 @@ public class GenerateAlternativeCodeForParser extends DepthFirstAdapter private void generateVariableDeclaration(Node term) throws IOException { String typeName = lookupInternalTypeName(term); - + if(typeName.startsWith("L")) { macros.apply(file, "ParserListVariableDeclaration", new String[] {getVariableName(term)});