Last change
on this file since 39 was
2,
checked in by Sam Hocevar, 18 years ago
|
- imported original 0.7.0 tarball
|
File size:
465 bytes
|
Line | |
---|
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.