document new tokens

This commit is contained in:
dfsek committed 2020-12-23 01:43:53 -07:00
1 parent b4342a36aa
commit e9dc7428b8
2 files changed
+22 -4

No files matched your search

@@ -22,7 +22,6 @@ public class Block implements Item<Block.ReturnLevel> {
@Override @Override
public ReturnLevel apply(Location location, Rotation rotation) { public ReturnLevel apply(Location location, Rotation rotation) {
for(Item<?> item : items) { for(Item<?> item : items) {
Object result = item.apply(location, rotation); Object result = item.apply(location, rotation);
if(result instanceof ReturnLevel) { if(result instanceof ReturnLevel) {
@@ -176,17 +176,36 @@ public class Token {
*/ */
BOOLEAN_AND, BOOLEAN_AND,
/** /**
* Variable declaration * Numeric variable declaration
*/ */
NUMBER_VARIABLE, NUMBER_VARIABLE,
/**
* String variable declaration
*/
STRING_VARIABLE, STRING_VARIABLE,
/**
* Boolean variable declaration
*/
BOOLEAN_VARIABLE, BOOLEAN_VARIABLE,
/**
* If statement declaration
*/
IF_STATEMENT, IF_STATEMENT,
/**
* While loop declaration
*/
WHILE_LOOP, WHILE_LOOP,
/**
* Return statement
*/
RETURN, RETURN,
/**
* Continue statement
*/
CONTINUE, CONTINUE,
/**
* Break statement
*/
BREAK BREAK
} }
} }