added: directive [if-no fun1 fun2 ...]
if fun1 fun2 ... return false
then the content is evaluated
changed: [if-one fun1 fun2 ...]
when a function (from left to right) returns true
then the content is evaluated
(previous all functions were called)
git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@91 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
1 parent
0760313ec3
commit
0b88257e08
2 files changed
+46
-2
No files matched your search
@@ -36,7 +36,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* version 0.9.1
|
||||
* version 0.9.2
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -78,7 +78,7 @@ public:
|
||||
// change the name to 'Type'
|
||||
enum ItemType
|
||||
{
|
||||
item_none, item_container, item_text, item_ifany, item_for,
|
||||
item_none, item_container, item_text, item_ifany, item_ifno, item_for,
|
||||
item_else, item_end, item_err, item_normal, item_ifindex,
|
||||
item_include, item_is, item_ifone, item_comment, item_def
|
||||
};
|
||||
@@ -125,6 +125,7 @@ private:
|
||||
void CreateTreeReadItemDirectiveCheckEnding(Item & item);
|
||||
|
||||
void ReadDirectiveIfany(Item & item);
|
||||
void ReadDirectiveIfno(Item & item);
|
||||
void ReadDirectiveIfone(Item & item);
|
||||
void ReadDirectiveIs(Item & item);
|
||||
void ReadDirectiveIfindex(Item & item);
|
||||
@@ -243,6 +244,7 @@ private:
|
||||
void MakeTextIf_go(Pattern::Item & item, bool result);
|
||||
bool MakeTextIfindexnumber(Pattern::Item & item, Functions::Function * function, bool & result);
|
||||
void MakeTextIfany(Pattern::Item & item);
|
||||
void MakeTextIfno(Pattern::Item & item);
|
||||
void MakeTextIfone(Pattern::Item & item);
|
||||
void MakeTextIfindex(Pattern::Item & item);
|
||||
void MakeTextFor(Pattern::Item & item);
|
||||
|
||||
Reference in new issue
Block a user