removed: statements: [if-index ...] [is ...] and [is-no ...]

we can provide a user definied function which does the same
added:   to FunInfo<>:
         Stack * stack_tab
         size_t stack_index
         a stack table and an index to the current stack item



git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@988 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2014-11-02 17:26:56 +00:00
parent 6f1e2eb518
commit b519c79a3e
7 changed files with 30 additions and 226 deletions

View File

@@ -61,17 +61,11 @@ void Cache(Blocks & blocks, Item::Function & function)
}
void Cache(Blocks & blocks, Item & item)
{
// one exception (if_index is putting its argument on the functions stack)
/*
!! IMPROVE ME we need to change the parser and the index take as a string
*/
if( item.type != Item::item_ifindex )
{
for(size_t f=0; f < item.functions.size() ; ++f)
Cache(blocks, item.functions[f]);
}
for(size_t f=0; f < item.functions.size() ; ++f)
Cache(blocks, item.functions[f]);
for(size_t i=0; i < item.item_tab.size() ; ++i)
Cache(blocks, *item.item_tab[i]);