Proparse Group



Proparse and include file

Hi,

I am using proparse to analyze my progress code. I currently use prparse.dll from c#. 5latest version downloaded from web site).

When I try to get the list of included files belonging to a program unit, proparse returns an empty string !

Where am I wrong ?

Here is some code :

RefactorSession prsession = RefactorSession.getInstance();

// Disable parser serialization.
prsession.setProjectBinariesEnabledOff();

prsession.loadProject(projectName);
org.prorefactor.refactor.settings.ProgressProjectSettings settings = prsession.getProgressSettings();


Print to data to xml file

Hello,
any one have an clear example , about printing the data to XML file and then to view in an word of internet browser?

Thanx,
Y


parsing fails for buffer on temp-table if table with same name exists

When you have a sports2000 database connected parsing the following code fails:

DEFINE TEMP-TABLE customer NO-UNDO
FIELD test AS CHARACTER.
DEFINE BUFFER bufcustomer FOR TEMP-TABLE customer.

The error:

---------------------------
Error (Press HELP to view stack trace)
---------------------------
org.prorefactor.refactor.RefactorException: c:\test.p:3 Storetype mismatch between proparse.dll and treeparser01: customer 1103 1102 -> File: c:\test.p Line: 3 Column: 8 Type: BUFFER Text: BUFFER
---------------------------
OK Help
---------------------------


proparsing adm2/browser.p

When I try to parse adm2/browser.p (using proparse.NET) the session locks up taking a huge amount of cpu.
I'm running the version of proparse that is in Subversion, adm2/browser.p from OE 10.1A02 and the progress version is 10.2B01.


Problem parsing files with different codepage

hi, i have the following problem ...
This indicates a character that cannot bthe current file I/O code page: Windows-1252
Try using a different encoding from the for example: -Dfile.encoding="ISO8859_1"

i have set the JAVA_TOOL_OPTIONS environment variable to -Dfile.encoding=Cp850
but it seems the .net version of proparse is not using it.

any help, here? where can i set the endcoding else?

cheers, toni.


how to make a query with proparse.NET from OpeneEdge

Hello,

I'm trying to port a parsing tool from the old proparse.p api to the new .NET api, but I don't understand how I can call the query method on a JPNode. The javadocs say it returns a generic type (java.util.ArrayList) and (as far as I know) generics are not supported in ABL yet.

Thanks in advance!

Jan

DEFINE INPUT PARAMETER icFileName AS CHARACTER NO-UNDO.

USING org.prorefactor.refactor.* FROM assembly.
USING org.prorefactor.treeparser.* FROM assembly.
USING org.prorefactor.core.* FROM assembly.

DEFINE VARIABLE prSession AS CLASS RefactorSession.


Progress DB access via VM

Hi,

I'm using Progress 10.1c in Linux(ubuntu 10.04) which runs on a Windows machine via VM. The databases are running in Linux as local databases i.e. without specifying any port numbers. How can I access the DB's running on Linux from Windows.
Is i possible at all?

Regards,
Akshay


New release

I just posted a new build to www.joanju.com/proparse/ with support for reserved keywords as names for class members. Get it while it's hot!


Prolint with Proparse.Net

I have completed the work necessary to get Prolint running with Proparse.Net. You will find downloads and instructions at http://www.joanju.com/proparse/.

This means that, on Windows, you will be able to run Prolint against 10.2 ABL syntax.

It also means that any new development done on Prolint can take advantage of direct access to Proparse's classes and objects, just like you can with other .Net assemblies.


2.1 Proparse.Net from OpenEdge

The Proparse .Net DLL was compiled using IKVM
(ikvm.net).
The proparse.assemblies.zip archive contains proparse.net.dll as well
as the minimum two IKVM assemblies needed for running Prolint.
For uses beyond Prolint, you might require additional IKVM libraries.

If you are downloading Proparse for Prolint, then you will want to make sure you are using
Prolint release 74 or later for use with Proparse.Net.

Download and unzip proparse.assemblies.zip. The assemblies must
be in a directory where OpenEdge can find them, usually using the


Proparse build 1075 with ABL 10.2B syntax support

I posted proparse build 1075 to http://www.joanju.com/proparse/ . This build adds support for ABL 10.2B syntax, and also fixes some bugs in supporting earlier class-based syntax. I've also released a new version of AutoDox2, which includes these updates.


DBTYPE function in preprocessor expression causes <AST>: unexpected AST node: DBTYPE

DBTYPE was added as preprocessor function in OpenEdge 10.1A or so.

Test case

&IF DBTYPE( "dictdb" ) = "PROGRESS" &THEN

MESSAGE DBTYPE( "dictdb":u ) VIEW-AS ALERT-BOX INFORMATION.

&ENDIF


3 The Proparse Library

This page will provide a few starter hints for using the Proparse libraries.

Follow along in the source code, or else in the 'javadoc' here:

oehive.github.io/proparse-javadoc/

org.prorefactor.refactor.RefactorSession

We use an instance of this class:

RefactorSession prsession = RefactorSession.getInstance();

With our instance, we are able to load our project settings :

prsession.loadProject(projectName);

2.2 Proparse.Net from C#

Here is a C# example which uses proparse.net.dll to print Proparse's syntax tree to the console:

using org.prorefactor.refactor;
using org.prorefactor.treeparser;

using System;
using System.Collections.Generic;
using System.Text;
using org.prorefactor.core;

namespace proparse.net {
class Program {

	int indent = 0;

	static void Main(string[] args) {
		if (args.Length < 2) {
			Console.WriteLine("Usage: TreePrint projectName fileName");
			return;
		}
		new Program().run(args[0], args[1]);
	}


	void run(String projectName, String fileName) {

Retired (historical) pages

Parent page for retired (no longer used) Proparse pages.


#
Syndicate content