Appendix A: System Routines — Token Operations
1091
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_parse_text
Declaration:
Boolean
push_parse_text
(unsigned char *
cp
)
Category(ies):
Token Operations
Description:
The tokenization routine that creates external tokenized form from text
input.
Inputs:
cp
— Points to a null terminated text string.
Outputs:
Pushes the external tokenized form of the input onto the expression stack.
Returns TRUE when the input represents a single algebraic expression.
Returns FALSE when the input contains a
§
operation, any command,
or any statement separator indicating more than one statement is
represented.
Assumptions:
None
Side Effects:
May expand expression stack and may cause heap compression.
Availability:
On AMS 1.05 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: NG_tokenize
Example:
/* Given the text string "x + y", push the external tokenized form of the expression
(X_VAR_TAG Y_VAR_TAG ADD_TAG) onto the expression stack. */
unsigned char expression[] = "x + y";
(void) push_parse_text (expression);