A few regex changes that will help to bring DECORATE close to ZScript syntax with a few simple modifications.
You'll need Notepad++ for that.
Paste your code in Notepad++ and perform the following operations one by one using Regex mode in Search & Replace:
Find:
Code: Select all
(?i)(^actor)(\s+?\w+?$)
Code: Select all
Class$2 : Actor
Code: Select all
(?i)^actor(\s+?.+?$)
Code: Select all
Class$1
Code: Select all
(?i)^\s*(?!states|Class)\w([^\}\{:]|::|\w:\w)+?$
Code: Select all
$0;
Code: Select all
(?i)^Class(.|\s)+?\n\{
Code: Select all
$0\nDefault \{
Code: Select all
(?i)(Default \{)((.|\s)+?)(states|\})
Code: Select all
$1$2\t\}\n$4
Code: Select all
(?i)A_ChangeFlag[^"]+"(\w+)",(\w+).+?$
Code: Select all
\{ b$1 \= $2 \};
And then do the minor things like replacing "" with "none", etc.
Someone with actual programming experience could turn it into a quick converter. (Maybe I'll be able to do it later my self)