Last change
on this file since 555 was
555,
checked in by Sam Hocevar, 11 years ago
|
ps3: make everything compile on the PS3. Of course, nothing links yet
because so much support is missing.
|
-
Property svn:keywords set to
Id
|
File size:
807 bytes
|
Rev | Line | |
---|
[56] | 1 | /* |
---|
| 2 | * Abuse - dark 2D side-scrolling platform game |
---|
| 3 | * Copyright (c) 1995 Crack dot Com |
---|
[494] | 4 | * Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net> |
---|
[56] | 5 | * |
---|
| 6 | * This software was released into the Public Domain. As with most public |
---|
[555] | 7 | * domain software, no warranty is made or implied by Crack dot Com, by |
---|
| 8 | * Jonathan Clark, or by Sam Hocevar. |
---|
[56] | 9 | */ |
---|
| 10 | |
---|
[2] | 11 | #ifndef __PARSE_HPP_ |
---|
| 12 | #define __PARSE_HPP_ |
---|
| 13 | |
---|
| 14 | |
---|
| 15 | enum { sEND,sNUMBER,sSTRING,sWORD,sOPERATOR,sLEFT_BRACE,sRIGHT_BRACE, |
---|
| 16 | sLEFT_PAREN,sRIGHT_PAREN,sASSIGNMENT,sCOMMA } ; |
---|
| 17 | extern char *ttype[]; |
---|
| 18 | |
---|
| 19 | void expect(int thing, int type, char *where); |
---|
| 20 | void skip_space(char *&s); |
---|
| 21 | int get_token(char *&s, char *buffer); |
---|
| 22 | int token_type(char *s); |
---|
| 23 | void next_token(char *&s); |
---|
| 24 | int get_number(char *&s); |
---|
| 25 | void get_filename(char *&s, char *buffer); |
---|
| 26 | void match_right(char *&s); |
---|
| 27 | |
---|
| 28 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.