2002-08-02 04:07:25 +00:00
|
|
|
/*
|
|
|
|
#FILENAME#
|
|
|
|
|
|
|
|
#DESCRIPTION#
|
|
|
|
|
|
|
|
Copyright (C) 2002 #AUTHOR#
|
|
|
|
|
|
|
|
Author: #AUTHOR#
|
|
|
|
Date: #DATE#
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to:
|
|
|
|
|
|
|
|
Free Software Foundation, Inc.
|
|
|
|
59 Temple Place - Suite 330
|
|
|
|
Boston, MA 02111-1307, USA
|
|
|
|
|
2002-08-08 09:20:00 +00:00
|
|
|
$Id$
|
2002-08-02 04:07:25 +00:00
|
|
|
*/
|
|
|
|
|
2003-04-13 22:07:58 +00:00
|
|
|
#include "gib_tree.h"
|
2003-01-28 21:16:21 +00:00
|
|
|
|
2002-08-22 22:43:47 +00:00
|
|
|
inline qboolean GIB_Escaped (const char *str, int i);
|
|
|
|
|
2002-08-08 09:20:00 +00:00
|
|
|
char GIB_Parse_Match_Brace (const char *str, unsigned int *i);
|
2002-08-07 06:17:50 +00:00
|
|
|
char GIB_Parse_Match_Backtick (const char *str, unsigned int *i);
|
2002-08-14 05:28:07 +00:00
|
|
|
char GIB_Parse_Match_Index (const char *str, unsigned int *i);
|
2002-11-19 04:24:09 +00:00
|
|
|
char GIB_Parse_Match_Paren (const char *str, unsigned int *i);
|
2003-01-28 21:16:21 +00:00
|
|
|
char GIB_Parse_Match_Var (const char *str, unsigned int *i);
|
2002-08-06 08:15:20 +00:00
|
|
|
|
2003-02-25 06:52:27 +00:00
|
|
|
gib_tree_t *GIB_Parse_Lines (const char *program, unsigned int pofs);
|
2003-04-11 02:57:11 +00:00
|
|
|
gib_tree_t *GIB_Parse_Embedded (gib_tree_t *token);
|
2002-08-03 06:04:00 +00:00
|
|
|
|
2003-01-28 21:16:21 +00:00
|
|
|
extern qboolean gib_parse_error;
|
2003-04-11 02:57:11 +00:00
|
|
|
void GIB_Parse_Error (const char *msg, unsigned int pos);
|
2003-02-14 08:06:01 +00:00
|
|
|
const char *GIB_Parse_ErrorMsg (void);
|
|
|
|
unsigned int GIB_Parse_ErrorPos (void);
|