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

Last change on this file since 56 was 56, checked in by Sam Hocevar, 15 years ago
  • Add licensing terms to most C / C++ files (Ref #5).
File size: 729 bytes
Line 
1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
4 *
5 *  This software was released into the Public Domain. As with most public
6 *  domain software, no warranty is made or implied by Crack dot Com or
7 *  Jonathan Clark.
8 */
9
10#ifndef __PARSE_HPP_
11#define __PARSE_HPP_
12
13
14enum  { sEND,sNUMBER,sSTRING,sWORD,sOPERATOR,sLEFT_BRACE,sRIGHT_BRACE,
15        sLEFT_PAREN,sRIGHT_PAREN,sASSIGNMENT,sCOMMA  } ;
16extern char *ttype[];
17
18void expect(int thing, int type, char *where);
19void skip_space(char *&s);
20int get_token(char *&s, char *buffer);
21int token_type(char *s);
22void next_token(char *&s);
23int get_number(char *&s);
24void get_filename(char *&s, char *buffer);
25void match_right(char *&s);
26
27#endif
Note: See TracBrowser for help on using the repository browser.