1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-06-30 01:29:41 +00:00
C02/src/expr.h

24 lines
893 B
C
Raw Normal View History

/**********************************
* C02 Expession Parsing Routines *
**********************************/
2018-02-13 22:25:57 +00:00
char term[255]; //Term parsed from equation
char oprstk[MAXTRM]; //Operator Stack
char trmstk[MAXTRM][VARLEN+1]; //Function/Index Terms Stack
int trmidx; //Next Index in Stack
int trmcnt; //Number of total terms in current expression
2017-05-01 01:17:50 +00:00
2018-02-13 23:16:23 +00:00
int chkadr(int adract); //Check for and Process Address or String
2018-02-13 22:25:57 +00:00
void chkidx(); //Check for, Parse, and Process Index
void prcftm(); //Process First Term
2018-02-13 22:25:57 +00:00
void prsadr(int adract); //Parse and Compile Address of Operator
void prsfnc(char trmntr); //Parse function call
void prsidx(); //Parse Array Index
void prstrm(); //Parse Term in Expression
void prsrxp(char trmntr); //Parse Rest of Expression
2018-02-13 22:25:57 +00:00
void prsxpr(char trmntr); //Parse Expression
2017-05-01 01:17:50 +00:00