예제 #1
0
파일: Parser.cs 프로젝트: daxfohl/LLVMTut
 public FunctionAST(PrototypeAST proto, IExprAST body)
 {
     _proto = proto;
     _body = body;
 }
예제 #2
0
파일: Parser.cs 프로젝트: daxfohl/LLVMTut
 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;
 }