1 Using Proparse

Download

You can find Proparse pre-built libraries on Joanju's Proparse page at
joanju.com/proparse/.

Configuration for Project Settings

The prorefactor/configure.p script is now included in the Proparse .zip file distributions, but see Project Config. Dump for a description of how to use it to get started.

Running a test parse

Copy resources.example/testparse.properties to the top directory, and edit it for your own project. Then:

java -cp proparse.jar proparse.TestParse

Printing a Proparse syntax tree to the console

Example usage:

java -cp proparse.jar proparse.TreePrint unittest data/newsyntax/101b/Test2.cls

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

proparse.jar needs prorefactor directories?

Maybe I don't understand your instructions, but if I want to use Proparse without Prorefactor, for example just to drive Prolint, do I still need to make Prorefactor project settings and will Proparse still dump output to a Prorefactor sub-directory?


john's picture

Re: proparse.jar needs prorefactor directories?

I have a bit more work to do. :) Right now proparse.jar does have the same requirements and output as ProRefactor.

I have to add a couple of minor things to proparse.jar so that the new socket/blob API is more suitable for Prolint:
- allow configuration through the socket, rather than require an up-front dump of the project settings
- make it optional whether anything is stored in a 'prorefactor' subdirectory

But in terms of using proparse.jar for jvm scripting, yes, it's the same as ProRefactor.