예제 #1
0
        public void Run(AstExpressionStatement statement)
        {
#if DEBUG
            //Log($"statement = {statement}");
#endif

            var node = new ExpressionNode(_context);
            node.Run(statement.Expression);

            AddCommands(node.Result);

            AddCommand(new IntermediateScriptCommand()
            {
                OperationCode = OperationCode.ClearStack
            });
        }
예제 #2
0
 public override void VisitExpressionStatement(AstExpressionStatement node)
 {
     Visit(node.Expression);
 }
 /// <inheritdoc/>
 protected override void OnEnter()
 {
     Result = new AstExpressionStatement();
 }