예제 #1
0
        private string Generate(OutNode node, List <Instruction> instructions)
        {
            string outExp = "";

            GenerateReturn(node.outputExpression, ref outExp);
            instructions.Add(new OutInstruction(outExp));
            return(outExp);
        }
예제 #2
0
        private OutNode Bind(OutNode node, Dictionary <string, string> environment)
        {
            SyntaxNode boundExpression = BindExpression(node.outputExpression, environment);

            return(new OutNode(boundExpression));
        }