mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-04 23:06:05 +00:00
document new tokens
This commit is contained in:
@@ -22,7 +22,6 @@ public class Block implements Item<Block.ReturnLevel> {
|
||||
|
||||
@Override
|
||||
public ReturnLevel apply(Location location, Rotation rotation) {
|
||||
|
||||
for(Item<?> item : items) {
|
||||
Object result = item.apply(location, rotation);
|
||||
if(result instanceof ReturnLevel) {
|
||||
|
||||
@@ -176,17 +176,36 @@ public class Token {
|
||||
*/
|
||||
BOOLEAN_AND,
|
||||
/**
|
||||
* Variable declaration
|
||||
* Numeric variable declaration
|
||||
*/
|
||||
NUMBER_VARIABLE,
|
||||
/**
|
||||
* String variable declaration
|
||||
*/
|
||||
STRING_VARIABLE,
|
||||
/**
|
||||
* Boolean variable declaration
|
||||
*/
|
||||
BOOLEAN_VARIABLE,
|
||||
|
||||
/**
|
||||
* If statement declaration
|
||||
*/
|
||||
IF_STATEMENT,
|
||||
/**
|
||||
* While loop declaration
|
||||
*/
|
||||
WHILE_LOOP,
|
||||
|
||||
/**
|
||||
* Return statement
|
||||
*/
|
||||
RETURN,
|
||||
/**
|
||||
* Continue statement
|
||||
*/
|
||||
CONTINUE,
|
||||
/**
|
||||
* Break statement
|
||||
*/
|
||||
BREAK
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user