A parser is a program which analyses incoming code and transforms it into another format.
I intend to offer an online parser for GDL source code with the following options:
- Replace all TABs by four spaces
- Deleting of multiple spaces
- Deleting unnecessary spaces around e.g. operators or commas
- Deleting empty lines
- Case changing of all commands (syntax of GDL updated to ArchiCAD 10) and/or global parameters
- Codeshrinking
- Rumbling or random renaming of variable names
- Implant and hide a custom signature to identify special versions
There may also be some additional minor functions such as
- Converting pasted POLY2_{3} defined entity into PRISM, REVOLVE, SLAB etc.
- Move input lines just one space left or right, not tabs as IDE (ArchiCAD’s built-in editor) does
Furthermore, you will get lists of:
- probably all used variable names
- all plain text sections for probably doing translations easier.
All you will need to do is to drop a XML translated object into a designated source frame on this website. I may even add the ability to locate the file on your HD. After pushing the “GO” button the resulting scripts can be cut & pasted back (or could be saved out as a new XML file).
The parser will be written in java or java script for running on client side. No GDL or other data will be transmitted to the server. No guarantees that resulting code won’t be shredded somewhere during translation, or that any resulting code will work of course - so make backups before using!
Now the bad news: This is one of my many projects that are not quite finished (actually not yet started!). And I fear I will not be able to offer the complete service free of charge.
