|
FAUST compiler
0.9.9.6b8
|
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <limits.h>#include "tree.hh"#include <fstream>#include <cstdlib>
Go to the source code of this file.
Macros | |
| #define | ERROR(s, t) { error(s,t); exit(1); } |
Functions | |
| static void | error (const char *s, Tree t) |
| int | tree2int (Tree t) |
| if t has a node of type int, return it otherwise error More... | |
| double | tree2float (Tree t) |
| if t has a node of type float, return it otherwise error More... | |
| double | tree2double (Tree t) |
| if t has a node of type float, return it otherwise error More... | |
| const char * | tree2str (Tree t) |
| if t has a node of type symbol, return its name otherwise error More... | |
| void * | tree2ptr (Tree t) |
| if t has a node of type ptr, return it otherwise error More... | |
| bool | isTree (const Tree &t, const Node &n) |
| bool | isTree (const Tree &t, const Node &n, Tree &a) |
| bool | isTree (const Tree &t, const Node &n, Tree &a, Tree &b) |
| bool | isTree (const Tree &t, const Node &n, Tree &a, Tree &b, Tree &c) |
| bool | isTree (const Tree &t, const Node &n, Tree &a, Tree &b, Tree &c, Tree &d) |
| bool | isTree (const Tree &t, const Node &n, Tree &a, Tree &b, Tree &c, Tree &d, Tree &e) |
| void * | getUserData (Tree t) |
| if t has a node of type symbol, return the associated user data More... | |
Variables | |
| Tabber | TABBER (1) |
| Sym | PROCESS = symbol("process") |
| #define ERROR | ( | s, | |
| t | |||
| ) | { error(s,t); exit(1); } |
Definition at line 96 of file tree.cpp.
Referenced by tree2double(), tree2float(), tree2int(), tree2ptr(), and tree2str().
|
static |
| void* getUserData | ( | Tree | t | ) |
if t has a node of type symbol, return the associated user data
Definition at line 372 of file tree.cpp.
References getUserData(), isSym(), and CTree::node().
Referenced by getUserData().


Definition at line 305 of file tree.cpp.
References CTree::node().
Referenced by isBoxAbstr(), isBoxAccess(), isBoxAppl(), isBoxButton(), isBoxCase(), isBoxCheckbox(), isBoxComponent(), isBoxCut(), isBoxEnvironment(), isBoxError(), isBoxFConst(), isBoxFFun(), isBoxFVar(), isBoxHBargraph(), isBoxHGroup(), isBoxHSlider(), isBoxIdent(), isBoxInputs(), isBoxIPar(), isBoxIProd(), isBoxISeq(), isBoxISum(), isBoxLibrary(), isBoxMerge(), isBoxModifLocalDef(), isBoxNumEntry(), isBoxOutputs(), isBoxPar(), isBoxPatternMatcher(), isBoxPatternVar(), isBoxPrim0(), isBoxPrim1(), isBoxPrim2(), isBoxPrim3(), isBoxPrim4(), isBoxPrim5(), isBoxRec(), isBoxSeq(), isBoxSlot(), isBoxSplit(), isBoxSymbolic(), isBoxTGroup(), isBoxVBargraph(), isBoxVGroup(), isBoxVSlider(), isBoxWaveform(), isBoxWire(), isBoxWithLocalDef(), isClosure(), isDocDgm(), isDocEqn(), isDocLst(), isDocMtd(), isDocNtc(), isDocTxt(), isImportFile(), isPathCurrent(), isPathParent(), isPathRoot(), isProj(), isRec(), isRef(), isSigAttach(), isSigBinOp(), isSigButton(), isSigCheckbox(), isSigDelay1(), isSigDocAccessTbl(), isSigDocConstantTbl(), isSigDocWriteTbl(), isSigFConst(), isSigFFun(), isSigFixDelay(), isSigFloatCast(), isSigFVar(), isSigGen(), isSigHBargraph(), isSigHSlider(), isSigInput(), isSigIntCast(), isSigIota(), isSigNumEntry(), isSigOutput(), isSigPrefix(), isSigRDTbl(), isSigSelect2(), isSigSelect3(), isSigTable(), isSigTuple(), isSigTupleAccess(), isSigVBargraph(), isSigVSlider(), isSigWaveform(), isSigWRTbl(), isUiFolder(), and isUiWidget().

Definition at line 310 of file tree.cpp.
References CTree::arity(), CTree::branch(), and CTree::node().

Definition at line 320 of file tree.cpp.
References CTree::arity(), CTree::branch(), and CTree::node().

Definition at line 331 of file tree.cpp.
References CTree::arity(), CTree::branch(), and CTree::node().

Definition at line 343 of file tree.cpp.
References CTree::arity(), CTree::branch(), and CTree::node().

Definition at line 356 of file tree.cpp.
References CTree::arity(), CTree::branch(), and CTree::node().

| double tree2double | ( | Tree | t | ) |
if t has a node of type float, return it otherwise error
Definition at line 262 of file tree.cpp.
References ERROR, isDouble(), isInt(), and CTree::node().
Referenced by Description::addWidget().


| double tree2float | ( | Tree | t | ) |
if t has a node of type float, return it otherwise error
Definition at line 246 of file tree.cpp.
References ERROR, isDouble(), isInt(), and CTree::node().
Referenced by eval2double(), ScalarCompiler::generateHSlider(), ScalarCompiler::generateNumEntry(), ScalarCompiler::generateVSlider(), Compiler::generateWidgetCode(), Compiler::generateWidgetMacro(), infereSigType(), infereWaveformType(), and DocCompiler::prepareIntervallicUI().


| int tree2int | ( | Tree | t | ) |
if t has a node of type int, return it otherwise error
Definition at line 230 of file tree.cpp.
References ERROR, isDouble(), isInt(), and CTree::node().
Referenced by Description::addGroup(), annotate(), boxComplexity(), eval2int(), ffargtype(), ffrestype(), Compiler::generateUserInterfaceTree(), getRecursivness(), getSigOrder(), infereFConstType(), infereFVarType(), isBoxPatternMatcher(), and boxpp::print().


| void* tree2ptr | ( | Tree | t | ) |
if t has a node of type ptr, return it otherwise error
Definition at line 288 of file tree.cpp.
References ERROR, isPointer(), and CTree::node().
Referenced by getColorProperty(), OccMarkup::getOcc(), and isBoxPatternMatcher().


| const char* tree2str | ( | Tree | t | ) |
if t has a node of type symbol, return its name otherwise error
Definition at line 278 of file tree.cpp.
References ERROR, isSym(), name(), and CTree::node().
Referenced by Description::addGroup(), Description::addWidget(), applyList(), DocCompiler::compileLateq(), declareAutoDoc(), declareMetadata(), SourceReader::expandrec(), extractName(), ffincfile(), fflibfile(), ffname(), ScalarCompiler::generateCode(), DocCompiler::generateCode(), generateDiagramSchema(), generateInputSlotSchema(), generateInsideSchema(), Compiler::generateMacroInterfaceTree(), generateOutputSlotSchema(), Compiler::generateUserInterfaceTree(), Compiler::generateWidgetCode(), Compiler::generateWidgetMacro(), DocCompiler::getUIDir(), DocCompiler::getUIDocInfos(), legalFileName(), main(), mapGetEqName(), ppsig::print(), boxpp::print(), printDocMetadata(), realeval(), tree2quotedstr(), and writeSchemaFile().


| Tabber TABBER |
Definition at line 87 of file tree.cpp.
Referenced by annotationStatistics(), getSigType(), setSigType(), T(), and traced_simplification().
1.8.7