94 |
class VMStringExpr; |
class VMStringExpr; |
95 |
class VMIntArrayExpr; |
class VMIntArrayExpr; |
96 |
class VMStringArrayExpr; |
class VMStringArrayExpr; |
97 |
|
class VMParserContext; |
98 |
|
|
99 |
/** @brief Virtual machine expression |
/** @brief Virtual machine expression |
100 |
* |
* |
788 |
virtual VMFunction* functionByName(const String& name) = 0; |
virtual VMFunction* functionByName(const String& name) = 0; |
789 |
|
|
790 |
/** |
/** |
791 |
|
* Returns @c true if the passed built-in function is disabled and |
792 |
|
* should be ignored by the parser. This method is called by the |
793 |
|
* parser on preprocessor level for each built-in function call within |
794 |
|
* a script. Accordingly if this method returns @c true, then the |
795 |
|
* respective function call is completely filtered out on preprocessor |
796 |
|
* level, so that built-in function won't make into the result virtual |
797 |
|
* machine representation, nor would expressions of arguments passed to |
798 |
|
* that built-in function call be evaluated, nor would any check |
799 |
|
* regarding correct usage of the built-in function be performed. |
800 |
|
* In other words: a disabled function call ends up as a comment block. |
801 |
|
* |
802 |
|
* @param fn - built-in function to be checked |
803 |
|
* @param ctx - parser context at the position where the built-in |
804 |
|
* function call is located within the script |
805 |
|
*/ |
806 |
|
virtual bool isFunctionDisabled(VMFunction* fn, VMParserContext* ctx) = 0; |
807 |
|
|
808 |
|
/** |
809 |
* Returns a variable name indexed map of all built-in script variables |
* Returns a variable name indexed map of all built-in script variables |
810 |
* which point to native "int" scalar (usually 32 bit) variables. |
* which point to native "int" scalar (usually 32 bit) variables. |
811 |
*/ |
*/ |