swftools.git
15 years agochanged flags2access calls to flags2namespace
kramm [Tue, 6 Jan 2009 21:35:06 +0000 (21:35 +0000)]
changed flags2access calls to flags2namespace

15 years agomade ^ left-associative
kramm [Tue, 6 Jan 2009 21:34:55 +0000 (21:34 +0000)]
made ^ left-associative

15 years agoadded '|=' implementation
kramm [Tue, 6 Jan 2009 21:34:44 +0000 (21:34 +0000)]
added '|=' implementation

15 years agoslight interface changes
kramm [Tue, 6 Jan 2009 21:34:27 +0000 (21:34 +0000)]
slight interface changes

15 years agouses compiler.h now instead of doing everything itself
kramm [Tue, 6 Jan 2009 21:33:53 +0000 (21:33 +0000)]
uses compiler.h now instead of doing everything itself

15 years agoadded cleanup code
kramm [Tue, 6 Jan 2009 21:33:45 +0000 (21:33 +0000)]
added cleanup code

15 years agodon't clean up after the last file, so that exceptoins during closing have a proper...
kramm [Tue, 6 Jan 2009 21:33:34 +0000 (21:33 +0000)]
don't clean up after the last file, so that exceptoins during closing have a proper filename and line number

15 years agorenamed syntaxerror to as3_error, added a warning
kramm [Tue, 6 Jan 2009 21:33:26 +0000 (21:33 +0000)]
renamed syntaxerror to as3_error, added a warning

15 years agomoved flex exports to tokenizer.h
kramm [Tue, 6 Jan 2009 21:32:54 +0000 (21:32 +0000)]
moved flex exports to tokenizer.h

15 years agoadded simple interface to the parser
kramm [Tue, 6 Jan 2009 21:32:47 +0000 (21:32 +0000)]
added simple interface to the parser

15 years agoadded assert() in cut_last_push
kramm [Tue, 6 Jan 2009 21:32:06 +0000 (21:32 +0000)]
added assert() in cut_last_push

15 years agomerged code_find_start and code_start
kramm [Tue, 6 Jan 2009 21:31:57 +0000 (21:31 +0000)]
merged code_find_start and code_start

15 years agoexported abc_initscript_addClassTrait
kramm [Tue, 6 Jan 2009 21:31:45 +0000 (21:31 +0000)]
exported abc_initscript_addClassTrait

15 years agonew function abc_initscript()
kramm [Tue, 6 Jan 2009 21:31:37 +0000 (21:31 +0000)]
new function abc_initscript()

15 years agorenamed code_dump() to code_dump2(), code_dump() only takes one argument
kramm [Tue, 6 Jan 2009 21:31:26 +0000 (21:31 +0000)]
renamed code_dump() to code_dump2(), code_dump() only takes one argument

15 years agoremoved return type parameter from abc_initscript(), added function swf_AddAS3FontDef...
kramm [Tue, 6 Jan 2009 21:31:16 +0000 (21:31 +0000)]
removed return type parameter from abc_initscript(), added function swf_AddAS3FontDefine()

15 years agofixed dependencies
kramm [Tue, 6 Jan 2009 21:31:03 +0000 (21:31 +0000)]
fixed dependencies

15 years agothe tokenizer/parser/compiler files are now compiled by ../Makefile
kramm [Tue, 6 Jan 2009 21:30:55 +0000 (21:30 +0000)]
the tokenizer/parser/compiler files are now compiled by ../Makefile

15 years agoreshuffled flags
kramm [Tue, 6 Jan 2009 21:30:44 +0000 (21:30 +0000)]
reshuffled flags

15 years agoadded flags2namespace function
kramm [Tue, 6 Jan 2009 21:30:33 +0000 (21:30 +0000)]
added flags2namespace function

15 years agorenamed access08 to namespace
kramm [Tue, 6 Jan 2009 21:30:21 +0000 (21:30 +0000)]
renamed access08 to namespace

15 years agoadded namespace handling
kramm [Tue, 6 Jan 2009 21:30:09 +0000 (21:30 +0000)]
added namespace handling

15 years agoregenerated
kramm [Tue, 6 Jan 2009 21:29:57 +0000 (21:29 +0000)]
regenerated

15 years agotest hex floats, too
kramm [Tue, 6 Jan 2009 21:29:27 +0000 (21:29 +0000)]
test hex floats, too

15 years agotest case for finally, with more complicated finally blocks
kramm [Tue, 6 Jan 2009 21:29:17 +0000 (21:29 +0000)]
test case for finally, with more complicated finally blocks

15 years agosimplified one test case so that insert_finally_simple() is used
kramm [Tue, 6 Jan 2009 21:28:57 +0000 (21:28 +0000)]
simplified one test case so that insert_finally_simple() is used

15 years agotest unexpected (non-local) exceptions, too
kramm [Tue, 6 Jan 2009 21:28:49 +0000 (21:28 +0000)]
test unexpected (non-local) exceptions, too

15 years agoadded more tests
kramm [Tue, 6 Jan 2009 21:28:38 +0000 (21:28 +0000)]
added more tests

15 years agoadded test for ?: statement
kramm [Tue, 6 Jan 2009 21:28:30 +0000 (21:28 +0000)]
added test for ?: statement

15 years agonew test case for reconcile problems
kramm [Tue, 6 Jan 2009 21:28:22 +0000 (21:28 +0000)]
new test case for reconcile problems

15 years agonew test, for package paths
kramm [Tue, 6 Jan 2009 21:28:02 +0000 (21:28 +0000)]
new test, for package paths

15 years agotest variables of type class, too
kramm [Tue, 6 Jan 2009 21:27:42 +0000 (21:27 +0000)]
test variables of type class, too

15 years agotest for namespaces
kramm [Tue, 6 Jan 2009 21:27:31 +0000 (21:27 +0000)]
test for namespaces

15 years agotest for 'use namespace'
kramm [Tue, 6 Jan 2009 21:27:23 +0000 (21:27 +0000)]
test for 'use namespace'

15 years agoadded a few local vars, to check for reconcile problems
kramm [Tue, 6 Jan 2009 21:27:03 +0000 (21:27 +0000)]
added a few local vars, to check for reconcile problems

15 years agotest for regular expressions
kramm [Tue, 6 Jan 2009 21:26:52 +0000 (21:26 +0000)]
test for regular expressions

15 years agotest x|y|z
kramm [Tue, 6 Jan 2009 21:26:32 +0000 (21:26 +0000)]
test x|y|z

15 years agoadded check for |=
kramm [Tue, 6 Jan 2009 21:26:21 +0000 (21:26 +0000)]
added check for |=

15 years agofixed vertical alignment bug
kramm [Tue, 6 Jan 2009 21:26:10 +0000 (21:26 +0000)]
fixed vertical alignment bug

15 years agoupgraded exportfont to flash version 9
kramm [Tue, 6 Jan 2009 21:25:54 +0000 (21:25 +0000)]
upgraded exportfont to flash version 9

15 years agoSWF are local-with-network by default, now
kramm [Tue, 6 Jan 2009 21:25:42 +0000 (21:25 +0000)]
SWF are local-with-network by default, now

15 years agonew keyword 'with'
kramm [Fri, 2 Jan 2009 21:22:03 +0000 (21:22 +0000)]
new keyword 'with'

15 years agoimplemented 'with'
kramm [Fri, 2 Jan 2009 21:21:51 +0000 (21:21 +0000)]
implemented 'with'

15 years agotest for global var assignment
kramm [Fri, 2 Jan 2009 21:21:37 +0000 (21:21 +0000)]
test for global var assignment

15 years agonew keyword throw
kramm [Fri, 2 Jan 2009 21:05:35 +0000 (21:05 +0000)]
new keyword throw

15 years agoimplemented throw and try/catch
kramm [Fri, 2 Jan 2009 21:05:23 +0000 (21:05 +0000)]
implemented throw and try/catch

15 years agonew function code_start()
kramm [Fri, 2 Jan 2009 21:04:55 +0000 (21:04 +0000)]
new function code_start()

15 years agonew function dict_contains
kramm [Fri, 2 Jan 2009 19:56:39 +0000 (19:56 +0000)]
new function dict_contains

15 years agomoved test programs to optional targer
kramm [Fri, 2 Jan 2009 19:56:27 +0000 (19:56 +0000)]
moved test programs to optional targer

15 years agonew keywords in,each
kramm [Fri, 2 Jan 2009 19:56:16 +0000 (19:56 +0000)]
new keywords in,each

15 years agofixed bug in for/do/while/switch
kramm [Fri, 2 Jan 2009 19:56:07 +0000 (19:56 +0000)]
fixed bug in for/do/while/switch

15 years agonew keywords try,case,catch,default,switch
kramm [Fri, 2 Jan 2009 19:55:57 +0000 (19:55 +0000)]
new keywords try,case,catch,default,switch

15 years agoadded special tokens for for/do/while
kramm [Fri, 2 Jan 2009 19:55:48 +0000 (19:55 +0000)]
added special tokens for for/do/while

15 years agonew keywords do, continue
kramm [Fri, 2 Jan 2009 19:55:39 +0000 (19:55 +0000)]
new keywords do, continue

15 years agoadded instanceof keyword
kramm [Fri, 2 Jan 2009 19:55:30 +0000 (19:55 +0000)]
added instanceof keyword

15 years agofixed bug in hex parsing
kramm [Fri, 2 Jan 2009 19:55:19 +0000 (19:55 +0000)]
fixed bug in hex parsing

15 years agomoved flag definitions to registry.h
kramm [Fri, 2 Jan 2009 19:55:06 +0000 (19:55 +0000)]
moved flag definitions to registry.h

15 years agonew helper structs codeandnumber, for_start
kramm [Fri, 2 Jan 2009 19:54:58 +0000 (19:54 +0000)]
new helper structs codeandnumber, for_start

15 years agoreshuffled flags
kramm [Fri, 2 Jan 2009 19:54:50 +0000 (19:54 +0000)]
reshuffled flags

15 years agouse ptroff as type for slot in union
kramm [Fri, 2 Jan 2009 19:54:15 +0000 (19:54 +0000)]
use ptroff as type for slot in union

15 years agonew function memberinfo_register_global
kramm [Fri, 2 Jan 2009 19:54:04 +0000 (19:54 +0000)]
new function memberinfo_register_global

15 years agofixed a mem leak
kramm [Fri, 2 Jan 2009 19:53:56 +0000 (19:53 +0000)]
fixed a mem leak

15 years agofindmember now recursively scans superclasses, memberinfo now has a parent
kramm [Fri, 2 Jan 2009 19:53:48 +0000 (19:53 +0000)]
findmember now recursively scans superclasses, memberinfo now has a parent

15 years agoadded getarrayclass()
kramm [Fri, 2 Jan 2009 19:53:40 +0000 (19:53 +0000)]
added getarrayclass()

15 years agoadded support for global slots
kramm [Fri, 2 Jan 2009 19:53:29 +0000 (19:53 +0000)]
added support for global slots

15 years agoimplemented class init code
kramm [Fri, 2 Jan 2009 19:53:18 +0000 (19:53 +0000)]
implemented class init code

15 years agofixed bug in variable allocation
kramm [Fri, 2 Jan 2009 19:53:07 +0000 (19:53 +0000)]
fixed bug in variable allocation

15 years agoimplemented global methods
kramm [Fri, 2 Jan 2009 19:52:56 +0000 (19:52 +0000)]
implemented global methods

15 years agokill temporary variable of 'dup2' workaround
kramm [Fri, 2 Jan 2009 19:52:45 +0000 (19:52 +0000)]
kill temporary variable of 'dup2' workaround

15 years agofixed reconcile bug in assignment
kramm [Fri, 2 Jan 2009 19:52:34 +0000 (19:52 +0000)]
fixed reconcile bug in assignment

15 years agoimplemented in
kramm [Fri, 2 Jan 2009 19:52:23 +0000 (19:52 +0000)]
implemented in

15 years agoimplemented for(in), for each(in)
kramm [Fri, 2 Jan 2009 19:52:12 +0000 (19:52 +0000)]
implemented for(in), for each(in)

15 years agoimplemented overriding
kramm [Fri, 2 Jan 2009 19:52:01 +0000 (19:52 +0000)]
implemented overriding

15 years agorefined switch fallthrough handling
kramm [Fri, 2 Jan 2009 19:51:50 +0000 (19:51 +0000)]
refined switch fallthrough handling

15 years agoimplemented switch
kramm [Fri, 2 Jan 2009 19:51:39 +0000 (19:51 +0000)]
implemented switch

15 years agoadded implementation for dict-style objects
kramm [Fri, 2 Jan 2009 19:51:28 +0000 (19:51 +0000)]
added implementation for dict-style objects

15 years agosmall fix in dynamic handling
kramm [Fri, 2 Jan 2009 19:51:17 +0000 (19:51 +0000)]
small fix in dynamic handling

15 years agofixed bug in while(){continue};
kramm [Fri, 2 Jan 2009 19:51:06 +0000 (19:51 +0000)]
fixed bug in while(){continue};

15 years agofixed segfault in ok/interface.as
kramm [Fri, 2 Jan 2009 19:50:55 +0000 (19:50 +0000)]
fixed segfault in ok/interface.as

15 years agofixed bug in break/continue w/ label
kramm [Fri, 2 Jan 2009 19:50:44 +0000 (19:50 +0000)]
fixed bug in break/continue w/ label

15 years agoadded do-while, break label, continue (label)
kramm [Fri, 2 Jan 2009 19:50:33 +0000 (19:50 +0000)]
added do-while, break label, continue (label)

15 years agoimplemented arrays
kramm [Fri, 2 Jan 2009 19:50:19 +0000 (19:50 +0000)]
implemented arrays

15 years agoadded call support for global functions
kramm [Fri, 2 Jan 2009 19:50:08 +0000 (19:50 +0000)]
added call support for global functions

15 years agoconstruct superclass in default constructor
kramm [Fri, 2 Jan 2009 19:49:57 +0000 (19:49 +0000)]
construct superclass in default constructor

15 years agosimplified default constructor generation
kramm [Fri, 2 Jan 2009 19:49:46 +0000 (19:49 +0000)]
simplified default constructor generation

15 years agouse labels for backward jumps, nop for forward jumps
kramm [Fri, 2 Jan 2009 19:49:35 +0000 (19:49 +0000)]
use labels for backward jumps, nop for forward jumps

15 years agouse label more sparingly, it might confuse the verifier
kramm [Fri, 2 Jan 2009 19:49:24 +0000 (19:49 +0000)]
use label more sparingly, it might confuse the verifier

15 years agoadded instanceof operator
kramm [Fri, 2 Jan 2009 19:49:13 +0000 (19:49 +0000)]
added instanceof operator

15 years agofixed bug in MEMBER_MULTINAME
kramm [Fri, 2 Jan 2009 19:49:02 +0000 (19:49 +0000)]
fixed bug in MEMBER_MULTINAME

15 years agofixed Number default value
kramm [Fri, 2 Jan 2009 19:48:51 +0000 (19:48 +0000)]
fixed Number default value

15 years agoremoved a few initcode relicts
kramm [Fri, 2 Jan 2009 19:48:40 +0000 (19:48 +0000)]
removed a few initcode relicts

15 years agodump out parent
kramm [Fri, 2 Jan 2009 19:47:43 +0000 (19:47 +0000)]
dump out parent

15 years agostore global functions as classes, too
kramm [Fri, 2 Jan 2009 19:47:35 +0000 (19:47 +0000)]
store global functions as classes, too

15 years agofixed mem leaks
kramm [Fri, 2 Jan 2009 19:47:24 +0000 (19:47 +0000)]
fixed mem leaks

15 years agoradically reduced default size. makes running tests faster.
kramm [Fri, 2 Jan 2009 19:47:16 +0000 (19:47 +0000)]
radically reduced default size. makes running tests faster.

15 years agorefined cut_last_push
kramm [Fri, 2 Jan 2009 19:47:05 +0000 (19:47 +0000)]
refined cut_last_push

15 years agoadded missing \n in fprintf(stderr)
kramm [Fri, 2 Jan 2009 19:46:56 +0000 (19:46 +0000)]
added missing \n in fprintf(stderr)

15 years agoadded fallthrough opcode
kramm [Fri, 2 Jan 2009 19:46:47 +0000 (19:46 +0000)]
added fallthrough opcode

15 years agodump out a method id for opcodes with a method index
kramm [Fri, 2 Jan 2009 19:46:37 +0000 (19:46 +0000)]
dump out a method id for opcodes with a method index

15 years agocutlastpush now handles newobject, newarray, too
kramm [Fri, 2 Jan 2009 19:46:28 +0000 (19:46 +0000)]
cutlastpush now handles newobject, newarray, too