home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_11_04
/
1104070a
< prev
next >
Wrap
Text File
|
1992-12-23
|
625b
|
37 lines
/* mixcalc.h */
/* Adapted from The C++ Programming Language by Bjarne Stroustrup
Modified by P.J. LaBrocca
*/
#ifndef MIXCALC_H
#define MIXCALC_H
#include "mixed.h"
#include <setjmp.h>
enum token_value {
NAME = 1, NUMBER, END, ENDFILE = END,
PLUS = '+', MINUS = '-',MUL = '*', DIV = '/',
PRINT = ';',ASSIGN = '=', LP = '(', RP = ')'
};
extern enum token_value curr_tok;
extern mixed_t *M;
//extern mixed_t number_value; //parser.c
extern jmp_buf startup;
//function prototypes
mixed_t expr(void);
mixed_t term(void);
mixed_t prim(void);
enum token_value get_token(void);
#endif