예제 #1
0
        internal ScriptBlock ParseScriptBlock(string script, bool interactiveCommand)
        {
            ScriptBlockNode scriptBlock = this.EngineParser.ParseScriptBlock(script, interactiveCommand);

            if (interactiveCommand)
            {
                this.EngineParser.SetPreviousFirstLastToken(this._context);
            }
            return((ScriptBlock)scriptBlock.Execute(this._context));
        }
예제 #2
0
 internal override void Visit(ScriptBlockNode node) => this.preOrderNodes.Add((ParseTreeNode)node);
예제 #3
0
 public FunctionDeclarationNode(Token name, ScriptBlockNode scriptBlockNode)
 {
     this.NodeToken = name;
     this._body     = scriptBlockNode;
 }
 internal override void Visit(ScriptBlockNode node) => this.ReportError((ParseTreeNode)node, "ScriptBlockNotSupportedInDataSection");