#include "prim2.hh"#include "stdlib.h"Go to the source code of this file.
Functions | |
| Tree | ffunction (Tree signature, Tree incfile, Tree libfile) |
| bool | isffunction (Tree t) |
| Tree | ffsignature (Tree ff) |
| const char * | ffincfile (Tree ff) |
| const char * | fflibfile (Tree ff) |
| int | ffrestype (Tree t) |
| const char * | ffname (Tree t) |
| int | ffarity (Tree t) |
| int | ffargtype (Tree t, int i) |
Variables | |
| Sym | FFUN = symbol ("ForeignFunction") |
| int ffargtype | ( | Tree | t, | |
| int | i | |||
| ) |
Definition at line 69 of file prim2.cpp.
References ffsignature(), nth(), and tree2int().
00070 { 00071 return tree2int(nth(ffsignature(t), i+2)); 00072 }
| int ffarity | ( | Tree | t | ) |
Definition at line 64 of file prim2.cpp.
References ffsignature(), and len().
Referenced by DocCompiler::generateFFun(), ScalarCompiler::generateFFun(), generateInsideSchema(), infereBoxType(), infereFFType(), and propagate().
00065 { 00066 return len(ffsignature(t))-2; 00067 }
| const char* ffincfile | ( | Tree | ff | ) |
Definition at line 44 of file prim2.cpp.
References CTree::branch(), and tree2str().
Referenced by ScalarCompiler::generateFFun().
| const char* fflibfile | ( | Tree | ff | ) |
Definition at line 49 of file prim2.cpp.
References CTree::branch(), and tree2str().
Referenced by ScalarCompiler::generateFFun().
| const char* ffname | ( | Tree | t | ) |
Definition at line 59 of file prim2.cpp.
References ffsignature(), nth(), and tree2str().
Referenced by DocCompiler::generateFFun(), ScalarCompiler::generateFFun(), generateInsideSchema(), boxpp::print(), and ppsig::printff().
00060 { 00061 return tree2str(nth(ffsignature(t),1)); 00062 }
| int ffrestype | ( | Tree | t | ) |
Definition at line 54 of file prim2.cpp.
References ffsignature(), hd(), and tree2int().
Referenced by infereFFType().
00055 { 00056 return tree2int(hd(ffsignature(t))); 00057 }
Definition at line 39 of file prim2.cpp.
References CTree::branch().
Referenced by ffargtype(), ffarity(), ffname(), and ffrestype().
00040 { 00041 return ff->branch(0); 00042 }
| bool isffunction | ( | Tree | t | ) |
1.6.3