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(namespace_decl);
39 DECLARE_LIST(namespace_decl);
40 DECLARE_LIST(typedcode);
61 struct _namespace_decl {
66 /* small helper structs: */
67 typedef struct _codeandnumber {
71 typedef struct _for_start {
75 typedef struct _regexp {
80 extern char start_of_expression;
82 typedef token_t*tokenptr_t;
84 #include "parser.tab.h"
86 extern int as3_verbosity;
88 extern unsigned int as3_tokencount;
89 #define syntaxerror as3_error
90 void as3_error(const char*format, ...);
91 void as3_warning(const char*format, ...);
92 void as3_softwarning(const char*format, ...);
94 void as3_buffer_input(void*buffer, int len);
95 void as3_file_input(FILE*fi);
97 void tokenizer_register_namespace(const char*id);
98 void tokenizer_unregister_namespace(const char*id);
102 extern int avm2_lex();
103 extern int avm2_lex_destroy();