// Arithmetic interpreter parser declaration. // // OWNER: course // NAME: parser.h // VERSION: 1 // DATE: 12/26/93 // // This file declares the arithmetic interpreter parser. // #ifndef _PARSER_H_ #define _PARSER_H_ #include "avalue.h" // The avalue type. // The grammar for the arithmetic language is as // follows: // // -> {[+,-]}* // -> {[*,/]}* // -> | | () // | - // -> = ; // -> {}*. // // The parser calls avalue type routines, which can be // changed without changing the parser or the rest of // the interpreter program. avalue expr (void); avalue term (void); avalue factor (void); avalue asst (void); avalue program (void); #endif // _PARSER_H_