PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Source code formatter  (Read 14 times)

pwhirley

  • Silver Member
  • ***
  • Posts: 20
    • View Profile
Source code formatter
« on: Today at 05:03:09 PM »
Has anyone out there written a source code formatter for PXPlus programs?  I use Eclipse with a plug-in developed and maintained by Fred McGuirk.  It does a great job of decompiling PXPlus programs into text source, but it does not attempt to do any pretty formatting.  I am considering writing a tool to do the formatting (i.e. remove LET, replace "THEN" with "{", indent IF and loop constructs, etc).  I don't want to write it if someone else has already done so.

Phil
Philip Whirley
Freelance software developer
phil@whirley.org

Mike King

  • Diamond Member
  • *****
  • Posts: 3820
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Source code formatter
« Reply #1 on: Today at 05:27:00 PM »
There is one built into ED+.

Simply load the program into ED+ then select Tools >> Reformat from the menu bar. 

You can then save the resultant as a sequential file.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com