|
FAUST compiler
0.9.9.6b8
|
#include <stdio.h>#include <iostream>#include <sstream>#include <vector>#include <math.h>#include "doc_compile.hh"#include "sigtype.hh"#include "floats.hh"#include "sigprint.hh"#include "sigtyperules.hh"#include "recursivness.hh"#include "simplify.hh"#include "privatise.hh"#include "prim2.hh"#include "xtended.hh"#include "compatibility.hh"#include "ppsig.hh"#include "names.hh"#include "doc.hh"#include "tlib.hh"#include "doc_notice.hh"
Go to the source code of this file.
Functions | |
| bool | getSigListNickName (Tree t, Tree &id) |
| static bool | associative (int opcode) |
| Generate binary operations, managing priority parenthesis. More... | |
| static bool | isVerySimpleFormula (Tree sig) |
| Test if exp is very simple that is it can't be considered a real component. More... | |
| static bool | isSeparator (char c) |
| tests if a charactere is a word separator More... | |
| static string | replaceTimeBy (const string &src, char r) |
| Replaces the occurences of 't' in a formula with another character. More... | |
Variables | |
| bool | gLessTempSwitch |
| int | gMaxCopyDelay |
| map< string, string > | gDocMathStringMap |
| static const unsigned int | MAX_RIGHT_MEMBER = 20 |
| static const unsigned int | MAX_SUB_EXPR = 10 |
|
static |
Generate binary operations, managing priority parenthesis.
((a*b)+c) can be written (a*b+c) if priority(*) > priority(+) ((a*b)*c) can be writteb (a*b*c) if * is associative Associative operation should have a distinc priority from other operations. Non associative operations can share the same priority.
| sig | The signal expression to treat. |
| opcode | The operation code, as described in gBinOpLateqTable. |
| arg1 | The first operand. |
| arg2 | The second operand. |
| priority | The priority of the environment of the expression. |
associative operations are + * | & xor
Definition at line 401 of file doc_compile.cpp.
Referenced by DocCompiler::generateBinOp().

|
static |
tests if a charactere is a word separator
Definition at line 788 of file doc_compile.cpp.
Referenced by replaceTimeBy().

|
static |
Test if exp is very simple that is it can't be considered a real component.
| exp | the signal we want to test |
Definition at line 511 of file doc_compile.cpp.
References isSigButton(), isSigCheckbox(), isSigFConst(), isSigHSlider(), isSigInput(), isSigInt(), isSigNumEntry(), isSigReal(), isSigVSlider(), and name().
Referenced by DocCompiler::generateCacheCode().


|
static |
Replaces the occurences of 't' in a formula with another character.
Definition at line 802 of file doc_compile.cpp.
References isSeparator().
Referenced by DocCompiler::generateDocWriteTbl().


| map<string, string> gDocMathStringMap |
Definition at line 51 of file lateq.cpp.
Referenced by DocCompiler::prepareBinaryUI(), and DocCompiler::prepareIntervallicUI().
| int gMaxCopyDelay |
Definition at line 131 of file main.cpp.
Referenced by SchedulerCompiler::dlineLoop(), VectorCompiler::dlineLoop(), VectorCompiler::generateCacheCode(), and VectorCompiler::generateFixDelay().
|
static |
Definition at line 62 of file doc_compile.cpp.
|
static |
Definition at line 63 of file doc_compile.cpp.
1.8.7