5

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.

YWE
  • 2,849
  • 28
  • 42

3 Answers3

5

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).

AndersK
  • 35,813
  • 6
  • 60
  • 86
  • 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 Feb 04 '10 at 15:59
  • 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. – AndersK Feb 06 '10 at 10:13
  • 1
    I found an [Antlr v3 grammar for PowerScript](http://www.antlr.org/grammar/1324485038462/PBM.g) by Ivan Brezina. – Hugh Brackett Aug 20 '12 at 04:42
2

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).

Doug Porter
  • 7,721
  • 4
  • 40
  • 55
  • 1
    the UI code is in XAML format but the code at the back end is the same as before with regard to triggers etc. – AndersK Jan 12 '10 at 12:35
1

Here is the documentation http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc37772.1250/html/pbgs/CHDFGFBFA.htm (choose PowerScript Reference in table of contents)

Šime Tokić
  • 700
  • 1
  • 9
  • 22
  • I managed to find a [direct link](http://infocenter-archive.sybase.com/help/index.jsp?topic=/com.sybase.dc37781_1150/html/psref/title.htm). – John Y Aug 04 '17 at 16:18