3 Copyright (c) 2008 Matthias Kramm <kramm@quiss.org>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
26 #include "tokenizer.h"
38 DECLARE_LIST(typedcode);
60 /* small helper structs: */
61 typedef struct _codeandnumber {
65 typedef struct _for_start {
69 typedef struct _regexp {
74 extern char start_of_expression;
76 typedef token_t*tokenptr_t;
78 #include "parser.tab.h"
80 extern int as3_verbosity;
82 extern unsigned int as3_tokencount;
83 #define syntaxerror as3_error
84 void as3_error(const char*format, ...);
85 void as3_warning(const char*format, ...);
86 void as3_softwarning(const char*format, ...);
88 void as3_buffer_input(void*buffer, int len);
89 void as3_file_input(FILE*fi);
91 void tokenizer_register_namespace(const char*id);
95 extern int avm2_lex();
96 extern int avm2_lex_destroy();