Rename variable for clarity
This commit is contained in:
parent
0f00e35518
commit
1301e0a227
|
@ -40,9 +40,9 @@ public abstract class Token {
|
|||
public abstract SExpression parseSExpression(Supplier<Token> getNextToken);
|
||||
|
||||
public SExpression parseSExpressionTail(Supplier<Token> getNextToken) {
|
||||
Cons list = parseListBackwards(NIL, getNextToken).invoke();
|
||||
Cons backwardsList = parseListBackwards(NIL, getNextToken).invoke();
|
||||
|
||||
return reverse(NIL, list).invoke();
|
||||
return reverse(NIL, backwardsList).invoke();
|
||||
}
|
||||
|
||||
public TailCall<Cons> parseListBackwards(Cons accumulator, Supplier<Token> getNextToken) {
|
||||
|
|
Loading…
Reference in New Issue