This is a brute force text matching translator for Action Script source to one of the target languages.

The ANTLR is now part of the project.

To use define from project settings


Visual Studio 2010

This project is using Visual Studio 2010

Supported Target Languages

  • C++
  • C# (Not yet implemented)
  • Java (Not yet implemented)


  1. build symbol table for imports and resolve
  2. fix any errors in the ANTLR grammar
  3. Complete the type conversion

Type Conversion

Action Script C++ C# Java
Dictionary STL equivalent Dictionary Dictionary
String STL equivalent string String
XML This needs to be done while trying to maintain the semantics of the AS XML type XML XML


To translate all file(s) located in the given path
xas -R -npathtofiles -o .

To translate one file
xas -o .


n, name Required. Input file.
R, recurse Recurse looking for file(s).
v, verbose Verbose level. Range: from 0 to 2.
t, target Specify the output target (default C++)
o, output Specify the directory where translated files will be placed
(default is xas_output in current folder)
p, prefix Prefix accessors with set or get
i, ignore If file has errors don't stop.
help Display this help screen.

Last edited Jan 15, 2012 at 8:37 PM by jbakst, version 4


No comments yet.