prim2.hh File Reference

#include "tlib.hh"
#include "sigtype.hh"
Include dependency graph for prim2.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Tree ffunction (Tree signature, Tree incfile, Tree libfile)
bool isffunction (Tree t)
Tree ffsignature (Tree t)
const char * ffname (Tree t)
int ffarity (Tree t)
int ffrestype (Tree t)
int ffargtype (Tree t, int i)
const char * ffincfile (Tree t)
const char * fflibfile (Tree t)

Function Documentation

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 }

Here is the call graph for this function:

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

const char* ffincfile ( Tree  t  ) 

Definition at line 44 of file prim2.cpp.

References CTree::branch(), and tree2str().

Referenced by ScalarCompiler::generateFFun().

00045 {
00046     return tree2str(ff->branch(1));
00047 }

Here is the call graph for this function:

Here is the caller graph for this function:

const char* fflibfile ( Tree  t  ) 

Definition at line 49 of file prim2.cpp.

References CTree::branch(), and tree2str().

Referenced by ScalarCompiler::generateFFun().

00050 {
00051     return tree2str(ff->branch(2));
00052 }

Here is the call graph for this function:

Here is the caller graph for this function:

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

Tree ffsignature ( Tree  t  ) 

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

Tree ffunction ( Tree  signature,
Tree  incfile,
Tree  libfile 
)

Definition at line 29 of file prim2.cpp.

References tree().

Referenced by yyparse().

00030 {
00031     return tree(FFUN, signature, incfile, libfile);
00032 }

Here is the call graph for this function:

Here is the caller graph for this function:

bool isffunction ( Tree  t  ) 

Definition at line 34 of file prim2.cpp.

References CTree::node().

00035 {
00036     return t->node() == Node(FFUN); 
00037 }

Here is the call graph for this function:

Generated on Thu Jul 15 16:15:45 2010 for FAUST compiler by  doxygen 1.6.3