Hi,
I'm using this project to get people code from PeopleSoft 8.44 environment.
I've noticed that there is some differences between Application Designer code view and PeopleCodeParser output in files.
so I wrote some changes to get parser output as similar as possible to Application Designer view
I'm working only with PeopleSoft 8.44 environment and not test it with any others versions,
but i think that most changes schould be generic. (If no, You may use some config flag to activate it or not)
my PeopleCodeParser.java.patch contains:
lines 1-36, 57-64, 90-105, 326-359
hardcode insert extra space before Null 75 token if after "(" 11 token
respect indent in empty lines
lines 37-56
Non-ASCII strings support in embedded strings
lines 65-89
Non-ASCII strings support in comments
lines 106-287
Parser no 87 was doubled
Add new line before Less-than asterisk comment
Add indent once between get/set and end-get/end-set
Code formatting
lines 288-311, 368-374
'And', 'Or' tokens adds 2 to indent only inside if while or until(probably) conditions otherwise adds 1
lines 312-325
Do not add second newline (NEWLINE_BEFORE) after token 45 (NEWLINE_ONCE), fixes extra newlines after: method, function, For, While, When tokens
lines 360-367
Hardcode no space before "[" (token 76) if previous token was ")" (token 20)
lines 375-394
Indent fixes in case of comments inside if condition
Thanks for contributing code. You must have spent quite a bit of time getting these white-space issues right - I got reasonably close and decided that enough was enough (and with the introduction of PSPCMTXT in tools 8.52, there was no more need for it).
Now, my problem is that I'm currently not doing any PeopleSoft work, so I cannot test your code.
I can, however, grant you developer access to this project - would you be interested? When I get a chance, I'll improve the documentation a bit and promote the tool to version 1.0 - it's been in beta long enough...
I'm sorry but I don't have any other needs or ideas for this tool, nor I don't have time to develop any.
The only thing that was disturbing me was lack of unicode support in strings and comments and new lines misstatement in 8.44 version parsing.
I've fix it and some others cases by the way, and now this tool is enough good for me.
Only i can do is tell you that I've tested my code only on PS version 8.44 and it works good.