tags:

views:

209

answers:

2

Where can I find documentation for the actual PowerBuilder language. I am referring to the kind of code you get when you select "Edit Source" from a right-click menu on the library painter. Not the kind of code you normally write.

+1  A: 

There is no official documentation on the PowerBuilder syntax language that you see when you do Edit Source. Most that work with it have just had to use trial and error to figure it out. It has been asked before in the newsgroups about a syntax file so a parse could be built for it, but never provided. Here is a post talking about it

I believe the next version of PowerBuilder will be moving away from that syntax to a more XML based format (and moving from PBL's as binary files to a text based format).

Dougman
the UI code is in XAML format but the code at the back end is the same as before with regard to triggers etc.
Anders K.
+4  A: 

The PowerScript (which is the language used in PowerBuilder) has been expanded in PB12 but should compatible with previous versions. The PowerScript syntax is in ANTLR grammar so it should be fairly easy to create a documentation from it. If this has been done yet I am not sure but I will mention it for the compiler folks (at the moment the dev team is very busy with the end phases of PB12).

Anders K.
I would very much like to get the ANTLR grammar itself for a code analysis tool I'm working on. I've started with yacc but I'd gladly throw it all out for a definitive grammar. Also, if you can shake the grammar lose, someone will likely crank out the documentation.
Hugh Brackett
Personally I would have liked if the whole compiler became open source so that all those features that people want could have been implemented, but that isn't going to happen.
Anders K.