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"
37 DECLARE_LIST(typedcode);
55 /* small helper structs: */
56 typedef struct _codeandnumber {
60 typedef struct _for_start {
64 typedef struct _regexp {
69 extern char start_of_expression;
71 typedef token_t*tokenptr_t;
73 #include "parser.tab.h"
75 extern int as3_verbosity;
77 extern unsigned int as3_tokencount;
78 #define syntaxerror as3_error
79 void as3_error(const char*format, ...);
80 void as3_warning(const char*format, ...);
81 void as3_softwarning(const char*format, ...);
83 void as3_buffer_input(void*buffer, int len);
84 void as3_file_input(FILE*fi);
86 void tokenizer_register_namespace(const char*id);
90 extern int avm2_lex();
91 extern int avm2_lex_destroy();