Skip to content
Snippets Groups Projects
Commit 64513492 authored by dgelessus's avatar dgelessus
Browse files

Rename generated Parser nodeArrayList local variables to popped

parent c1c9bcbf
No related branches found
No related tags found
No related merge requests found
Pipeline #135776 passed
...@@ -138,7 +138,7 @@ public class GenerateAlternativeCodeForParser extends DepthFirstAdapter ...@@ -138,7 +138,7 @@ public class GenerateAlternativeCodeForParser extends DepthFirstAdapter
{ {
PTerm firstTerm = node.getTerms().get(0); PTerm firstTerm = node.getTerms().get(0);
if (popCount > 0) { if (popCount > 0) {
// The nodeArrayList variables are numbered starting at 1, so the first popped variable has the number popCount and not popCount-1. // The popped variables are numbered starting at 1, so the first popped variable has the number popCount and not popCount-1.
macros.apply(file, "ParserNewComputePositions", new String[] {getVariableName(firstTerm), String.valueOf(popCount)}); macros.apply(file, "ParserNewComputePositions", new String[] {getVariableName(firstTerm), String.valueOf(popCount)});
} }
......
This diff is collapsed.
...@@ -270,12 +270,12 @@ Macro:ParserNewHeader ...@@ -270,12 +270,12 @@ Macro:ParserNewHeader
$ $
Macro:ParserNewBodyDecl Macro:ParserNewBodyDecl
List<?> nodeArrayList$0$ = pop(); List<?> popped$0$ = pop();
$ $
Macro:ParserSimpleTerm Macro:ParserSimpleTerm
$0$ $1$ = ($0$)nodeArrayList$2$.get($3$); $0$ $1$ = ($0$)popped$2$.get($3$);
$ $
...@@ -341,7 +341,7 @@ Macro:ParserTypedLinkedListAddAll ...@@ -341,7 +341,7 @@ Macro:ParserTypedLinkedListAddAll
$ $
Macro:ParserNewComputePositions Macro:ParserNewComputePositions
computePositions($0$, nodeArrayList1, nodeArrayList$1$); computePositions($0$, popped1, popped$1$);
$ $
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment