mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-03 06:16:10 +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)) {
|
||||
|
||||
@@ -54,10 +54,7 @@ if(false) {
|
||||
}
|
||||
|
||||
|
||||
if(true && !(boolean && false) && true) {
|
||||
num scopedVar = 2;
|
||||
test("if statement" + 2 + stringVar, 1 + testVar + scopedVar);
|
||||
}
|
||||
|
||||
// comment
|
||||
|
||||
/*
|
||||
@@ -66,3 +63,7 @@ fsdfsd
|
||||
|
||||
test("fdsgdf" + 2, 1 + testVar);
|
||||
|
||||
if(true && !(boolean && false) && true) {
|
||||
num scopedVar = 2;
|
||||
test("if statement" + 2 + stringVar, 1 + testVar + scopedVar);
|
||||
}
|
||||
Reference in New Issue
Block a user