+ };
+ typedef struct token_st TOKEN;
+ struct token_st token; // current token
+
+ // Tables words stored with install() & found with lookup()
+ KeywordCodeHashTable skiptable; // words to ignore and skip
+ KeywordCodeHashTable cmdtable; // pol parameter commands
+ KeywordCodeHashTable usertable; // user defined symbols
+
+ struct metachar {
+ char eoc; /* end of command character */
+ char str; /* string delimiter */
+ char com; /* comment character */
+ char cmd; /* pol parameter command character */
+ char prg; /* program load character */
+ char con; /* continuation across newline character */
+ char out; /* character that delimits output to terminal */
+ char ter; /* character indicates insertion of input from terminal */
+ char inb; /* input from graphics device */
+ } meta;
+
+
+ char m_szSkipChars [MAXSKIPCHAR]; // characters to skip
+ bool m_bTrace;
+ bool m_bNewlineIsEOC;
+
+ struct KeywordCodeList {
+ char *keyword;
+ int code;
+ };
+
+ static const struct KeywordCodeList cmdlist[];
+ static const unsigned int NUMCMD;
+
+ // Internal codes for pol commands
+ enum {
+ PC_EOC = 1,
+ PC_STR,
+ PC_COM,
+ PC_CMD,
+ PC_PRG,
+ PC_CON,
+ PC_OUT,
+ PC_TER,
+ PC_INB,
+ PC_NL_EOC,
+ PC_NL_NEOC,
+ PC_TRON,
+ PC_TROFF,
+ PC_FILE,
+ PC_DUMP,
+ };
+
+ enum {
+ INPUT_STREAM = 1,
+ INPUT_FILE,
+ INPUT_STRING,
+ };
+
+ int m_iInputType;
+ std::istream* m_pInputStream;
+ FILE* m_pInputFile;
+ char* m_pszInputString;