From a3e0b3da5d7b0ec8dcae92a428f8e3f1c6cd6e8e Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Fri, 22 Apr 2016 14:29:19 -0400 Subject: Formatting changes --- .../main/java/bjc/dicelang/ast/nodes/OperatorDiceNode.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'dice-lang/src/main/java/bjc/dicelang/ast/nodes/OperatorDiceNode.java') diff --git a/dice-lang/src/main/java/bjc/dicelang/ast/nodes/OperatorDiceNode.java b/dice-lang/src/main/java/bjc/dicelang/ast/nodes/OperatorDiceNode.java index 18df122..411548a 100644 --- a/dice-lang/src/main/java/bjc/dicelang/ast/nodes/OperatorDiceNode.java +++ b/dice-lang/src/main/java/bjc/dicelang/ast/nodes/OperatorDiceNode.java @@ -1,6 +1,8 @@ package bjc.dicelang.ast.nodes; -import static bjc.dicelang.ast.nodes.DiceOperatorType.*; +import static bjc.dicelang.ast.nodes.DiceOperatorType.DICE; +import static bjc.dicelang.ast.nodes.DiceOperatorType.EXPRESSION; +import static bjc.dicelang.ast.nodes.DiceOperatorType.MATH; /** * A node that represents an operator @@ -36,11 +38,15 @@ public enum OperatorDiceNode implements IDiceASTNode { /** * Represents constructing an array from a sequence of expressions */ - ARRAY(EXPRESSION), + ARRAY(DiceOperatorType.ARRAY), /** * Represents assigning one node to another */ ASSIGN(EXPRESSION), + /** + * Represents calling a function + */ + CALL(EXPRESSION), /** * Represents evaluating one expression in the context of another */ @@ -85,6 +91,8 @@ public enum OperatorDiceNode implements IDiceASTNode { return LET; case "[]": return ARRAY; + case "call": + return CALL; default: throw new IllegalArgumentException( s + " is not a valid operator node"); -- cgit v1.2.3