24 #ifndef _DOC_COMPILE_SCAL_
25 #define _DOC_COMPILE_SCAL_
93 string CS (
Tree sig,
int priority);
156 string generateDelayVec(
Tree sig,
const string& exp,
const string& ctype,
const string& vname,
int mxd);
158 void generateDelayLine(
const string& ctype,
const string& vname,
int mxd,
const string& exp);
string generateAttach(Tree sig, Tree x, Tree y, int priority)
void sharingAnalysis(Tree t)
string prepareIntervallicUI(const string &name, Tree path, Tree tcur, Tree tmin, Tree tmax)
Prepare "intervallic" user interface elements (sliders, nentry).
string generateDelayVec(Tree sig, const string &exp, const string &ctype, const string &vname, int mxd)
Generate code for the delay mecchanism.
string CS(Tree sig, int priority)
Compile a signal.
string generateCacheCode(Tree sig, const string &exp)
string generateIntCast(Tree sig, Tree x, int priority)
string setCompiledExpression(Tree sig, const string &name)
Set the string of a compiled expression is already compiled.
string prepareBinaryUI(const string &name, Tree pathname)
Prepare binary user interface elements (button, checkbox).
void generateDelayLine(const string &ctype, const string &vname, int mxd, const string &exp)
Generate code for the delay mecchanism without using temporary variables.
string generateFVar(Tree sig, const string &file, const string &name)
DocCompiler(int numInputs, int numOutputs)
string generateSelect2(Tree sig, Tree sel, Tree s1, Tree s2, int priority)
Generate a select2 code.
string generateButton(Tree sig, Tree label)
string generateXtended(Tree sig, int priority)
retrieve the type annotation of sig
string generateDocConstantTbl(Tree sig, Tree size, Tree content)
Generate the equation of a constant table (its content is time constant).
A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches.
Description * fDescription
void setVectorNameProperty(Tree sig, const string &vecname)
Set the vector name property of a signal, the name of the vector used to store the previous values of...
string generateRecProj(Tree sig, Tree exp, int i, int priority)
Generate code for a projection of a group of mutually recursive definitions.
int fPriority
math priority context
Lateq * compileLateq(Tree L, Lateq *compiledEqn)
string generateCode(Tree sig, int priority)
Main code generator dispatch.
double max(double x, double y)
string generateDocWriteTbl(Tree sig, Tree size, Tree content, Tree widx, Tree wsig)
Generate the equation of a write table, which content is time dependent.
DocCompiler(Lateq *k, int priority)
void sharingAnnotation(int vctxt, Tree t)
property< string > fVectorProperty
string generateSelect3(Tree sig, Tree sel, Tree s1, Tree s2, Tree s3, int priority)
Generate a select3 code.
string generateDocAccessTbl(Tree sig, Tree tbl, Tree ridx)
Generate the equation of a write table, which content is time dependent.
string generateFConst(Tree sig, const string &file, const string &name)
string generateCheckbox(Tree sig, Tree label)
string generateVBargraph(Tree sig, Tree label, Tree min, Tree max, const string &exp)
string generateNumEntry(Tree sig, Tree label, Tree cur, Tree min, Tree max, Tree step)
string generateBinOp(Tree sig, int opcode, Tree arg1, Tree arg2, int priority)
string generateIota(Tree sig, Tree arg)
Generate a "iota" time function, n-cyclical.
void getUIDocInfos(Tree path, string &label, string &unit)
Get information on a user interface element for documentation.
void printGCCall(Tree sig, const string &calledFunction)
Print calling information of generateCode, for debug purposes.
bool isShortEnough(string &s, unsigned int max)
string generateDelayVecNoTemp(Tree sig, const string &exp, const string &ctype, const string &vname, int mxd)
Generate code for the delay mecchanism without using temporary variables.
void setSharingCount(Tree t, int count)
string generatePrefix(Tree sig, Tree x, Tree e, int priority)
Generate LaTeX code for "prefix", a 1sample-delay explicitely initialized.
string generateFFun(Tree sig, Tree ff, Tree largs, int priority)
string generateHBargraph(Tree sig, Tree label, Tree min, Tree max, const string &exp)
Occurences Markup of a root tree.
string getUIDir(Tree pathname)
Get the directory of a user interface element.
void setDescription(Description *descr)
string generateInput(Tree sig, const string &idx)
bool getVectorNameProperty(Tree sig, string &vecname)
Get the vector name property of a signal, the name of the vector used to store the previous values of...
void getTypedNames(Type t, const string &prefix, string &ctype, string &vname)
const char * name(Symbol *sym)
Returns the name of a symbol.
void generateRec(Tree sig, Tree var, Tree le, int priority)
Generate code for a group of mutually recursive definitions.
Compile a list of FAUST signals into a list of LaTeX formulas.
int getSharingCount(Tree t)
string generateFloatCast(Tree sig, Tree x, int priority)
Don't generate float cast !
static map< string, int > fIDCounters
string generateVSlider(Tree sig, Tree label, Tree cur, Tree min, Tree max, Tree step)
string generateNumber(Tree sig, const string &exp)
string generateOutput(Tree sig, const string &idx, const string &arg1)
Unused for the moment !
Description * getDescription()
bool getCompiledExpression(Tree sig, string &name)
Test if a signal is already compiled.
string generateFixDelay(Tree sig, Tree arg, Tree size, int priority)
Generate code for accessing a delayed signal.
API to the typing system of signals.
string generateVariableStore(Tree sig, const string &exp)
double min(double x, double y)
string getFreshID(const string &prefix)
string generateHSlider(Tree sig, Tree label, Tree cur, Tree min, Tree max, Tree step)
property< string > fCompileProperty