source: abuse/tags/pd/macabuse/inc/parse.hpp

Last change on this file was 49, checked in by Sam Hocevar, 12 years ago
  • Imported original public domain release, for future reference.
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.