document new tokens

This commit is contained in:
dfsek
2020-12-23 01:43:53 -07:00
parent b4342a36aa
commit e9dc7428b8
2 changed files with 22 additions and 4 deletions

View File

@@ -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) {

View File

@@ -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
}
}