TbcParser.Parse method
|
Top Previous Next |
Unit
Applies to
Declaration procedure Parse ;virtual;
Description Parses the expression and forms a parse tree. Throws EbcParserError exception if it cannot parse. Upon successful completion of parsing, it will set the Dirty flag to false, so that unless the expression is changed it does not need to re-parsed. Users may want to call the parse method directly to check the validity of an input expression using a try-except block.
If OptimizationOn property is true, Parse method will optimize the parse tree by evaluating constant branches of the parse tree at this moment, so that Evaluate function will run faster. |