S_PARSER.C - Simple PARSE Routines
A couple very simple ANSI C parse and identify routines. These are meant
to do white space parses on a str to support simple vocabularies or
simple destructive converts. For complex vocabularies you should use
YACC or BISON.
Function
|
return_next_token_str
|
Include file
|
S_PARSER.H
|
Prototype
|
char * return_next_token_str(
char *source_str , int terminate_str_flag )
|
Remarks
|
This routine returns the next white space delimited token str from a
source_str. If terminate_str_flag == TRUE then the token str is NULL
terminated. This routine is init-ed on the first call by providing a
source_str on the call. On future calls pass NULL instead of a str to
fetch sequential tokens from the original str.
|
Function
|
chk_cmd_verb_table
|
Include file
|
S_PARSER.H
|
Prototype
|
int chk_cmd_verb_table(
char *parsed_verb , CMD_VB cmd_verb_tbl[] , int tbl_size )
|
Remarks
|
Check a parsed_verb against a command_verb_table, if found return
the function code found in the verb, else return MAX table as not found.
|
Table of Contents
Function Index
generated on 22 September 1998 - 12:55:43
© 1998 Tierra del Fuego Ltd.
|