Go to the source code of this file.
|
| int | getSizeOfGS () |
| |
| int | my_add_history (char *buf) |
| |
| int | setDFormat (char *buf) |
| |
| int | getNumericFlag () |
| |
| int | getNset () |
| |
| int | findAnyVariable (char *name, struct QUERY_VAR *qv) |
| |
| int | initParseArgs () |
| |
| int | pushArgs () |
| |
| int | popArgs () |
| |
| void | subArgs (int wt, const char *fmt,...) |
| |
| int | compressReassembleTokens () |
| |
| int | reassembleCommand (char *buf) |
| |
| int | parseFlags () |
| |
| int | clearFlags () |
| |
| struct PARSE_FLAGS * | findFirstFlag () |
| |
| int | shiftFlags () |
| |
| int | isSet (int flag) |
| |
| int | isFirst (int flag) |
| |
| int | notSet (int flag) |
| |
| int | setFlag (int flag, int state) |
| |
| int | showLetHelp () |
| |
| int | listDynVars () |
| |
| int | findGSVar (char *name) |
| |
| int | initDvars () |
| |
| int | findVariable (char *var) |
| |
| int | clearVar () |
| |
| int | clearAllVar () |
| |
| int | makeDynVariable (char *var, int type) |
| |
| int | createInteger () |
| |
| int | createDouble () |
| |
| int | printVar () |
| |
| int | isSpecial (char cp) |
| |
| int | fixMathOperators (char *buf) |
| |
| int | expandCmd (char *src, char *dst) |
| |
| int | evaluateRightSide (int k, int n, char *buf) |
| |
| int | doLetCmd (char *buf) |
| |
| int | removeAllSpaces (char *in, char *out) |
| |
| int | doCalculation (char *buf) |
| |
| int | get_tok (char *edit) |
| |
| int | get_cmd_tok (char *edit) |
| |
| int | bang (char *buf) |
| |
| int | isCommand (char *buf) |
| |
| int | recordThisCommand (char *buf) |
| |
| int | printAmbiguousCommand (char *arg, struct COMMANDS *cmds) |
| |
| int | parseCmd (char *buf) |
| |
| void | process_line (char *line) |
| |
| int | ctrl_a_list (int arg1, int arg2) |
| |
| int | ctrl_b_list (int arg1, int arg2) |
| |
| int | ctrl_t_list (int arg1, int arg2) |
| |
| int | ctrl_l_list (int arg1, int arg2) |
| |
| int | ctrl_p_list (int arg1, int arg2) |
| |
| int | ctrl_e_list (int arg1, int arg2) |
| |
| int | showShortCuts () |
| |
| int | init_readline (void) |
| |
| int | setColor (int c) |
| |
| int | doColor () |
| |
| int | findInArgs (char *parg) |
| |
| int | recordCmds () |
| |
| int | showVariables () |
| |
| char * | FilterChars (char *String, char *Filter) |
| |
| int | get_sv_tok (char *edit) |
| |
| int | substituteVariables (char *inbuf, char *outbuf) |
| |
| int | doIf () |
| |
| int | doElse () |
| |
| int | doEndIf () |
| |
| int | doFor () |
| |
| int | doEndFor () |
| |
| int | doSexCmd () |
| |
| #define DEFINE_COLORS_STRINGS 1 |
| #define FIX_MATH_COMPRESS 2 |
| #define FIX_MATH_REPLACE 1 |
| #define INCLUDE_PARSE_FLAGS 1 |
| #define LP_IF_STATE_ELSE 3 |
| #define LP_IF_STATE_FALSE 2 |
| #define LP_IF_STATE_IDLE 0 |
| #define LP_IF_STATE_TRUE 1 |
| #define LP_IF_TEST_FALSE 0 |
| #define LP_IF_TEST_NTRUE 2 |
| #define LP_IF_TEST_TRUE 1 |
| #define VARIABLE_TYPE_DVAR 1 |
| #define VARIABLE_TYPE_GSVAR 2 |
| #define VARIABLE_TYPE_HEADER 3 |
| #define VARIABLE_TYPE_NONE 0 |
| #define VARIABLE_TYPE_PLANET 4 |
| int compressReassembleTokens |
( |
void |
| ) |
|
| int createDouble |
( |
void |
| ) |
|
| int createInteger |
( |
void |
| ) |
|
| int ctrl_a_list |
( |
int |
arg1, |
|
|
int |
arg2 |
|
) |
| |
| int ctrl_b_list |
( |
int |
arg1, |
|
|
int |
arg2 |
|
) |
| |
| int ctrl_e_list |
( |
int |
arg1, |
|
|
int |
arg2 |
|
) |
| |
| int ctrl_l_list |
( |
int |
arg1, |
|
|
int |
arg2 |
|
) |
| |
| int ctrl_p_list |
( |
int |
arg1, |
|
|
int |
arg2 |
|
) |
| |
| int ctrl_t_list |
( |
int |
arg1, |
|
|
int |
arg2 |
|
) |
| |
| int doCalculation |
( |
char * |
buf | ) |
|
- Bug:
- lcalc exits if there is a math error;
must set in place a math_err handler
Also, the command line args are not evaluated first.
lcalc doesn't know what to do with the command and exits.
Definition at line 1802 of file parse.c.
| int doLetCmd |
( |
char * |
buf | ) |
|
in the form:
let variable = expression
now can be called with just variable = expression
- Bug:
- Can not modify a header variable. If called with a header variable,
then system will create a dynamic variable with the same name.
Probably not what you want.
Need to change this behaviour
Definition at line 1600 of file parse.c.
| int evaluateRightSide |
( |
int |
k, |
|
|
int |
n, |
|
|
char * |
buf |
|
) |
| |
Evaluate the right side of the equation by substituting know variables into string
Definition at line 1542 of file parse.c.
| int expandCmd |
( |
char * |
src, |
|
|
char * |
dst |
|
) |
| |
| char* FilterChars |
( |
char * |
String, |
|
|
char * |
Filter |
|
) |
| |
| int findAnyVariable |
( |
char * |
name, |
|
|
struct QUERY_VAR * |
qv |
|
) |
| |
| int findGSVar |
( |
char * |
name | ) |
|
| int findInArgs |
( |
char * |
parg | ) |
|
| int findVariable |
( |
char * |
var | ) |
|
| int fixMathOperators |
( |
char * |
buf | ) |
|
| int get_cmd_tok |
( |
char * |
edit | ) |
|
Split multiple commands up in to seperate commands
Definition at line 1924 of file parse.c.
| int get_sv_tok |
( |
char * |
edit | ) |
|
Split single command up into tokens
Definition at line 2811 of file parse.c.
| int get_tok |
( |
char * |
edit | ) |
|
Split single command up into tokens
Definition at line 1902 of file parse.c.
| int getNumericFlag |
( |
void |
| ) |
|
| int init_readline |
( |
void |
| ) |
|
| int initParseArgs |
( |
void |
| ) |
|
| int isCommand |
( |
char * |
buf | ) |
|
determine of passed token is a previously defined command
Definition at line 1981 of file parse.c.
| int makeDynVariable |
( |
char * |
var, |
|
|
int |
type |
|
) |
| |
| int my_add_history |
( |
char * |
buf | ) |
|
| int parseCmd |
( |
char * |
buf | ) |
|
| int printAmbiguousCommand |
( |
char * |
arg, |
|
|
struct COMMANDS * |
cmds |
|
) |
| |
| void process_line |
( |
char * |
line | ) |
|
| int reassembleCommand |
( |
char * |
buf | ) |
|
| int recordThisCommand |
( |
char * |
buf | ) |
|
| int removeAllSpaces |
( |
char * |
in, |
|
|
char * |
out |
|
) |
| |
| int setDFormat |
( |
char * |
buf | ) |
|
| int setFlag |
( |
int |
flag, |
|
|
int |
state |
|
) |
| |
| int showShortCuts |
( |
void |
| ) |
|
| int showVariables |
( |
void |
| ) |
|
| void subArgs |
( |
int |
wt, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
| int substituteVariables |
( |
char * |
inbuf, |
|
|
char * |
outbuf |
|
) |
| |
Initial value:= {
{ "< =", "<= " },
{ "> =", ">= " },
{ "! =", "!= " },
{ "= =", "== " },
}
Definition at line 1434 of file parse.c.