mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-07 16:26:13 +00:00
fix EOF issues
This commit is contained in:
@@ -152,9 +152,7 @@ public class Parser {
|
||||
|
||||
List<IfKeyword.Pair<Returnable<Boolean>, Block>> elseIf = new GlueList<>();
|
||||
|
||||
System.out.println(tokens.get());
|
||||
|
||||
while(tokens.get().getType().equals(Token.Type.ELSE)) {
|
||||
while(tokens.hasNext() && tokens.get().getType().equals(Token.Type.ELSE)) {
|
||||
tokens.consume(); // Consume else.
|
||||
System.out.println("int: " + tokens.get());
|
||||
if(tokens.get().getType().equals(Token.Type.IF_STATEMENT)) {
|
||||
|
||||
Reference in New Issue
Block a user