source: abuse/trunk/src/include/parse.hpp @ 39

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
5enum  { sEND,sNUMBER,sSTRING,sWORD,sOPERATOR,sLEFT_BRACE,sRIGHT_BRACE,
6        sLEFT_PAREN,sRIGHT_PAREN,sASSIGNMENT,sCOMMA  } ;
7extern char *ttype[];
8
9void expect(int thing, int type, char *where);
10void skip_space(char *&s);
11int get_token(char *&s, char *buffer);
12int token_type(char *s);
13void next_token(char *&s);
14int get_number(char *&s);
15void get_filename(char *&s, char *buffer);
16void match_right(char *&s);
17
18#endif
Note: See TracBrowser for help on using the repository browser.