Sign in to follow this  
Followers 0
twitchyliquid64

Autoit Script to GENERIC Script Converter

3 posts in this topic

#1 ·  Posted (edited)

Hi all,

Put simply, this script allows you to translate your scripts written in the autoit scripting language into scripts in the GENERIC Scripting Language.

Don’t bother googling it, you wont find anything.

GENERIC is a markup language I made to act as an intermediary between different scripting languages, so that developers with different languages of choice can work on a project, and control statements (if, for, while, functions), variable management, expressions and some basic functions can be automatically translated and merged, so that the amount of porting that is needed is drastically reduced, not eliminated.

I hope to make a GENERIC to Python translator/converter soon, so you can quickly convert most of the functionality of an autoit script to python; An Autoit to python converter as such.

This program consists of several parsers, recursive functions, and an interpreter. Heres how it works:

1. Information on the Language you are translating from is pulled from a definitions file. (autoit_def.au3)

2. Autoit scripts are un-tidied to remove all formatting (indents, spaces at beginning of lines)

3. Script is scanned to find dependencies (#include)

4. Script is scanned to find User defined functions.

5. Script is recursively walked, finding all Branches of control blocks and separating them, linked by pointers.

6. Scripts are translated – Every line becomes two, with the first being the Expression in GENERIC and the second being a descriptor for the generic language.

TODO:

Make Select, switch, case, else, elseif statements work.

Automatic parsing of dependencies

Full list of builtin functions (You can help here, just add to the list in Autoit_def.au3)

Make a GENERIC to Py converter.

You are going to need Both of these in the same folder. Run the parse.au3

parse.au3

Autoit_def.au3

Have fun!

Hyperzap

Edited by hyperzap

ongoing projects:-firestorm: Largescale P2P Social NetworkCompleted Autoit Programs/Scripts: Variable Pickler | Networked Streaming Audio (in pure autoIT) | firenet p2p web messenger | Proxy Checker | Dynamic Execute() Code Generator | P2P UDF | Graph Theory Proof of Concept - Breadth First search

Share this post


Link to post
Share on other sites



You might like to add WIP to your title.

For built-in functions, keywords, etc. Dig around Scite4AutoIt properties files. (au3.keywords.properties)


"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

You might like to add WIP to your title.

Done. :) Edited by hyperzap

ongoing projects:-firestorm: Largescale P2P Social NetworkCompleted Autoit Programs/Scripts: Variable Pickler | Networked Streaming Audio (in pure autoIT) | firenet p2p web messenger | Proxy Checker | Dynamic Execute() Code Generator | P2P UDF | Graph Theory Proof of Concept - Breadth First search

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0