Ejemplo n.º 1
0
 public FunctionAST(PrototypeAST proto, IExprAST body)
 {
     _proto = proto;
     _body = body;
 }
Ejemplo n.º 2
0
 public static FunctionAST ParseTopLevelExpr(Queue<Lexed> tokens)
 {
     var e = ParseExpression(tokens);
     if (e != null) {
         var proto = new PrototypeAST("", new string[] { });
         return new FunctionAST(proto, e);
     }
     return null;
 }