From 6997b75403b32598276814837de31ac3ea36c0b3 Mon Sep 17 00:00:00 2001 From: arookas Date: Mon, 28 Dec 2015 13:15:13 -0500 Subject: [PATCH] Renamed AnalyzeExpression. --- ssc/ast/nodes.expressions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ssc/ast/nodes.expressions.cs b/ssc/ast/nodes.expressions.cs index 5c16016..188e29e 100644 --- a/ssc/ast/nodes.expressions.cs +++ b/ssc/ast/nodes.expressions.cs @@ -9,10 +9,10 @@ namespace arookas { public override void Compile(sunContext context) { Stack operatorStack = new Stack(32); - AnalyzeExpression(context, this, operatorStack); + CompileExpression(context, this, operatorStack); } - void AnalyzeExpression(sunContext context, sunExpression expression, Stack operatorStack) { + void CompileExpression(sunContext context, sunExpression expression, Stack operatorStack) { // this implementation assumes that the expression production child list alternates between operand and operator // we can safely assume this as the grammar "operand {binary_operator operand}" enforces it int stackCount = operatorStack.Count; @@ -23,7 +23,7 @@ namespace arookas { // term var term = operand.Term; if (term is sunExpression) { - AnalyzeExpression(context, term as sunExpression, operatorStack); + CompileExpression(context, term as sunExpression, operatorStack); } else { term.Compile(context);