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);
57 struct _namespace_decl {
62 /* small helper structs: */
63 typedef struct _codeandnumber {
67 typedef struct _for_start {
71 typedef struct _regexp {
76 extern char start_of_expression;
78 typedef token_t*tokenptr_t;
80 #include "parser.tab.h"
82 extern char*token2string(enum yytokentype nr, YYSTYPE v);
83 extern unsigned int as3_tokencount;
85 void as3_buffer_input(void*buffer, int len);
86 void as3_file_input(FILE*fi);
88 void tokenizer_begin_xml();
89 void tokenizer_begin_xmltext();
90 void tokenizer_end_xmltext();
91 void tokenizer_end_xml();
95 extern int avm2_lex();
96 extern int avm2_lex_destroy();