mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-20 07:10:24 +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<>();
|
List<IfKeyword.Pair<Returnable<Boolean>, Block>> elseIf = new GlueList<>();
|
||||||
|
|
||||||
System.out.println(tokens.get());
|
while(tokens.hasNext() && tokens.get().getType().equals(Token.Type.ELSE)) {
|
||||||
|
|
||||||
while(tokens.get().getType().equals(Token.Type.ELSE)) {
|
|
||||||
tokens.consume(); // Consume else.
|
tokens.consume(); // Consume else.
|
||||||
System.out.println("int: " + tokens.get());
|
System.out.println("int: " + tokens.get());
|
||||||
if(tokens.get().getType().equals(Token.Type.IF_STATEMENT)) {
|
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
|
// comment
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -66,3 +63,7 @@ fsdfsd
|
|||||||
|
|
||||||
test("fdsgdf" + 2, 1 + testVar);
|
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