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
.
postfix_token*
copy_postfix_tokens
(int& ntokens)
make a copy of current buffer of postfix tokens.
int
print_next_expr
()
boolean
skip_matched_parens
()
support for '()', '{}', and '[]'.
~Parser
()
Protected:
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)