Last change
on this file since 604 was
49,
checked in by Sam Hocevar, 15 years ago
|
- Imported original public domain release, for future reference.
|
File size:
465 bytes
|
Rev | Line | |
---|
[49] | 1 | #ifndef __PARSE_HPP_ |
---|
| 2 | #define __PARSE_HPP_ |
---|
| 3 | |
---|
| 4 | |
---|
| 5 | enum { sEND,sNUMBER,sSTRING,sWORD,sOPERATOR,sLEFT_BRACE,sRIGHT_BRACE, |
---|
| 6 | sLEFT_PAREN,sRIGHT_PAREN,sASSIGNMENT,sCOMMA } ; |
---|
| 7 | extern char *ttype[]; |
---|
| 8 | |
---|
| 9 | void expect(int thing, int type, char *where); |
---|
| 10 | void skip_space(char *&s); |
---|
| 11 | int get_token(char *&s, char *buffer); |
---|
| 12 | int token_type(char *s); |
---|
| 13 | void next_token(char *&s); |
---|
| 14 | int get_number(char *&s); |
---|
| 15 | void get_filename(char *&s, char *buffer); |
---|
| 16 | void match_right(char *&s); |
---|
| 17 | |
---|
| 18 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.