1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Sally::Sally(istream& input_stream) :
istrm(input_stream) // use member initializer to bind reference
{
symtab["DUMP"] = SymTabEntry(KEYWORD,0,&doDUMP) ;
symtab["+"] = SymTabEntry(KEYWORD,0,&doPlus) ;
symtab["-"] = SymTabEntry(KEYWORD,0,&doMinus) ;
symtab["*"] = SymTabEntry(KEYWORD,0,&doTimes) ;
symtab["/"] = SymTabEntry(KEYWORD,0,&doDivide) ;
symtab["%"] = SymTabEntry(KEYWORD,0,&doMod) ;
symtab["NEG"] = SymTabEntry(KEYWORD,0,&doNEG) ;
symtab["PRINT"] = SymTabEntry(KEYWORD,0,&doDot) ;
symtab["SP"] = SymTabEntry(KEYWORD,0,&doSP) ;
symtab["CR"] = SymTabEntry(KEYWORD,0,&doCR) ;
}
|