AS3 parser stub: TODO list

This commit is contained in:
Jindra Pet��k
2014-03-25 06:56:16 +01:00
parent fe05d44cb9
commit cb6fd64d6c
3 changed files with 22 additions and 12 deletions
@@ -75,6 +75,7 @@ import com.jpexs.decompiler.flash.abc.types.Multiname;
import com.jpexs.decompiler.flash.abc.types.Namespace;
import com.jpexs.decompiler.flash.action.swf4.ActionIf;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.gui.Main;
import com.jpexs.decompiler.flash.tags.ABCContainerTag;
import com.jpexs.decompiler.flash.tags.Tag;
import com.jpexs.decompiler.graph.GraphTargetItem;
@@ -1799,6 +1800,7 @@ public class ActionScriptParser {
if(args.length<2){
return;
}
Main.initLogging(false);
try {
String src = args[0];
String dst = args[1];
@@ -18,17 +18,6 @@ package com.jpexs.decompiler.flash.abc.avm2.parser.script;
import com.jpexs.decompiler.flash.SourceGeneratorLocalData;
import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2Instruction;
import com.jpexs.decompiler.flash.abc.avm2.instructions.localregs.GetLocal0Ins;
import com.jpexs.decompiler.flash.abc.avm2.instructions.localregs.GetLocal1Ins;
import com.jpexs.decompiler.flash.abc.avm2.instructions.localregs.GetLocal2Ins;
import com.jpexs.decompiler.flash.abc.avm2.instructions.localregs.GetLocal3Ins;
import com.jpexs.decompiler.flash.abc.avm2.instructions.localregs.GetLocalIns;
import com.jpexs.decompiler.flash.abc.avm2.instructions.localregs.SetLocal0Ins;
import com.jpexs.decompiler.flash.abc.avm2.instructions.localregs.SetLocal1Ins;
import com.jpexs.decompiler.flash.abc.avm2.instructions.localregs.SetLocal2Ins;
import com.jpexs.decompiler.flash.abc.avm2.instructions.localregs.SetLocal3Ins;
import com.jpexs.decompiler.flash.abc.avm2.instructions.localregs.SetLocalIns;
import com.jpexs.decompiler.flash.abc.avm2.instructions.stack.DupIns;
import com.jpexs.decompiler.flash.abc.avm2.instructions.stack.PopIns;
import com.jpexs.decompiler.flash.abc.avm2.model.AVM2Item;
import com.jpexs.decompiler.flash.abc.avm2.model.CoerceAVM2Item;
@@ -69,6 +58,12 @@ public class NameAVM2Item extends AVM2Item {
this.regNumber = regNumber;
}
public int getRegNumber() {
return regNumber;
}
public String getNs() {
return ns;
}
@@ -142,7 +137,7 @@ public class NameAVM2Item extends AVM2Item {
}
}
@Override
public List<GraphSourceItem> toSourceIgnoreReturnValue(SourceGeneratorLocalData localData, SourceGenerator generator) {
if (regNumber == -1) {
@@ -0,0 +1,13 @@
TODO List for AS3 parser/compiler:
------------------------------
- exceptions (try/catch)
- finally clause
- E4X (XML)
- for in/ for each
- typenames (Vectors)
- inner functions (activation, slots, etc.)
- namespaces :: etc.
- pre/post in/decrements
- with
- delete property
- default xml namespace