class
Parser
: public
ComTerpModule
(Return to index)
C++ wrapper for ComUtil parser capability.
Type:
Instantiable
Base Classes:
public
ComTerpModule
Derived Classes
Include file:
ComTerp/parser.h
Public:
Parser
()
Parser
(const char* path)
Parser
(istream&)
Parser
(void*, char*(*)(char*,int,void*), int(*)(void*), int(*)(void*))
see descriptions in
ComTerp
or
ComTerpModule
.
void
check_parser_client
()
postfix_token*
copy_postfix_tokens
(int& ntokens)
make a copy of current buffer of postfix tokens.
int
print_next_expr
()
void
save_parser_client
()
boolean
skip_matched_parens
()
support for '()', '{}', and '[]'.
~Parser
()
Protected:
unsigned
_NextBufptr
unsigned
_NextLinenum
int
_NextOp_ids[OPTYPE_NUM]
char*
_NextToken
unsigned
_NextToklen
unsigned
_NextTokstart
unsigned
_NextToktype
oper_stack*
_OperStack
paren_stack*
_ParenStack
int
_SizeOfOperStack
int
_SizeOfParenStack
int
_TopOfOperStack
int
_TopOfParenStack
int
__angle_brackets
int
__continuation_prompt
int
__continuation_prompt_disabled
int
__detail_matched_delims
int
__ignore_numerics
infuncptr
__oneshot_infunc
int
__skip_shell_comments
unsigned
__token_state_save
unsigned
_expecting
int
_opr_tbl_lastop
unsigned
_opr_tbl_maxop
unsigned
_opr_tbl_maxpri
unsigned
_opr_tbl_numop
void*
_opr_tbl_ptr
postfix_token*
_pfbuf
unsigned int
_pfnum
unsigned int
_pfsiz
void
init
()
static int
istream_feof
(void* istreamptr)
signature like feof for passing on istream end-of-file.
static int
istream_ferror
(void* istreamptr)
signature like feof for passing on istream error info.
static char*
istream_fgets
(char* s, int n, void* istreamptr)
signature like fgets for reading from an istream.
(more documentation)