<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.oehive.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>The OpenEdge Hive - Proparse discussion</title>
 <link>http://www.oehive.org/taxonomy/term/413/0</link>
 <description></description>
 <language>oehive</language>
<item>
 <title>Statement in else missing End Statement</title>
 <link>http://www.oehive.org/node/2353</link>
 <description>&lt;p&gt;This parses OK using OpenEdge 11.5 but seems to hang ProParse, likely due to the missing &#039;.&#039; in the else?:&lt;/p&gt;
&lt;p&gt;------- begin --------&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
/* an if statement with a missing end of statement marker in the else */&lt;br /&gt;
if vSharedVariable = “Some value” then&lt;br /&gt;
	run program1.p.&lt;br /&gt;
else&lt;br /&gt;
	run program2.p&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
-------  end  --------&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;    -djm&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/proparse_group&quot; class=&quot;og_links&quot;&gt;Proparse Group&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <comments>http://www.oehive.org/node/2353#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/413">Proparse discussion</category>
 <group domain="http://www.oehive.org/proparse_group">Proparse Group</group>
 <pubDate>Mon, 29 Aug 2016 23:06:36 +0000</pubDate>
 <dc:creator>dmarteinson</dc:creator>
 <guid isPermaLink="false">2353 at http://www.oehive.org</guid>
</item>
<item>
 <title>CAN-FIND</title>
 <link>http://www.oehive.org/node/2335</link>
 <description>&lt;p&gt;I&#039;m not quite certain why this particular variation of CAN-FIND doesn&#039;t parse, but I get:&lt;/p&gt;
&lt;p&gt;org.prorefactor.refactor.RefactorException: can-find.&lt;br /&gt;
p:7:8: unexpected token: CAN-FIND&lt;/p&gt;
&lt;p&gt;However a lot of other instances of can-find do seem to parse just fine.&lt;br /&gt;
Corresponding sample below &amp;amp; as an attachment.&lt;/p&gt;
&lt;p&gt;================ can-find.p ================&lt;/p&gt;
&lt;p&gt;/*------------------------------------------------------------------------&lt;br /&gt;
    File        : can-find.p&lt;br /&gt;
    Purpose     : demonstrate a parsing error using CAN-FIND&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/proparse_group&quot; class=&quot;og_links&quot;&gt;Proparse Group&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.oehive.org/node/2335&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.oehive.org/node/2335#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/413">Proparse discussion</category>
 <enclosure url="http://www.oehive.org/files/can-find.p" length="498" type="text/x-pascal" />
 <group domain="http://www.oehive.org/proparse_group">Proparse Group</group>
 <pubDate>Fri, 30 Oct 2015 20:05:44 +0000</pubDate>
 <dc:creator>dmarteinson</dc:creator>
 <guid isPermaLink="false">2335 at http://www.oehive.org</guid>
</item>
<item>
 <title>nested include with {&amp;*}</title>
 <link>http://www.oehive.org/node/2334</link>
 <description>&lt;p&gt;This one is a little esoteric but impacts a large number of programs here.&lt;br /&gt;
An include file has itself an include that looks like this:&lt;/p&gt;
&lt;p&gt;    {{&amp;amp;programname}{&amp;amp;*}}&lt;/p&gt;
&lt;p&gt;to optionally include another file at this point in the include (I.e. as a kind of primitive template method).&lt;br /&gt;
This appears to work fine, but programname is optionally included, and in a case where programname is undefined AND one of the cascading arguments is a multi-line argument, the value of the multiline argument does not have its newlines escaped in the program listing file causing a parse error.&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/proparse_group&quot; class=&quot;og_links&quot;&gt;Proparse Group&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.oehive.org/node/2334&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.oehive.org/node/2334#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/413">Proparse discussion</category>
 <enclosure url="http://www.oehive.org/files/listingfile.txt" length="54937" type="text/plain" />
 <group domain="http://www.oehive.org/proparse_group">Proparse Group</group>
 <pubDate>Fri, 30 Oct 2015 14:10:18 +0000</pubDate>
 <dc:creator>dmarteinson</dc:creator>
 <guid isPermaLink="false">2334 at http://www.oehive.org</guid>
</item>
<item>
 <title>down 1 stream </title>
 <link>http://www.oehive.org/node/2330</link>
 <description>&lt;p&gt;I&#039;m using ProParse to parse a large number of OpenEdge programs, a number of which use &#039;down 1 stream&#039; when generating reports.  ProParse doesn&#039;t seem to care for this, I&#039;m getting a org.prorefactor.refactor.RefactorException: down-one-stream.p:39:17: unexpected token: stream&lt;/p&gt;
&lt;p&gt;Here&#039;s a sample .p created to demonstrate this using the sports2k database (also attached):&lt;/p&gt;
&lt;p&gt;===================== snip ============================&lt;/p&gt;
&lt;p&gt;/*------------------------------------------------------------------------&lt;br /&gt;
    File        : down-one-stream.p&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/proparse_group&quot; class=&quot;og_links&quot;&gt;Proparse Group&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.oehive.org/node/2330&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.oehive.org/node/2330#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/413">Proparse discussion</category>
 <enclosure url="http://www.oehive.org/files/down-one-stream.p" length="1345" type="text/x-pascal" />
 <group domain="http://www.oehive.org/proparse_group">Proparse Group</group>
 <pubDate>Wed, 21 Oct 2015 13:13:29 +0000</pubDate>
 <dc:creator>dmarteinson</dc:creator>
 <guid isPermaLink="false">2330 at http://www.oehive.org</guid>
</item>
<item>
 <title>Indirect Define Node</title>
 <link>http://www.oehive.org/node/2328</link>
 <description>&lt;p&gt;I understand that Indirect Define Nodes can be parameter definitions, but what else might they be?&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/proparse_group&quot; class=&quot;og_links&quot;&gt;Proparse Group&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <comments>http://www.oehive.org/node/2328#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/413">Proparse discussion</category>
 <group domain="http://www.oehive.org/proparse_group">Proparse Group</group>
 <pubDate>Sun, 04 Oct 2015 19:48:50 +0000</pubDate>
 <dc:creator>tamhas</dc:creator>
 <guid isPermaLink="false">2328 at http://www.oehive.org</guid>
</item>
<item>
 <title>Program_root block</title>
 <link>http://www.oehive.org/node/2312</link>
 <description>&lt;p&gt;Given the code:&lt;/p&gt;
&lt;p&gt;    mobBlockNode = cast( ipobNode, BlockNode ).&lt;br /&gt;
    mobBlock = mobBlockNode:getBlock().&lt;br /&gt;
    mlgIsMethod = mobBlock:isMethodBlock().&lt;br /&gt;
    mlgIsProgram = mobBlock:isProgramBlock().&lt;/p&gt;
&lt;p&gt;for a node which is a block node, I would expect the Program_root node to give IsProgramBlock, but instead it gives IsMethodBlock.  Why?&lt;/p&gt;
&lt;p&gt;Curious too why the CLASS node is not considered a BLOCK.&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/proparse_group&quot; class=&quot;og_links&quot;&gt;Proparse Group&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <comments>http://www.oehive.org/node/2312#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/413">Proparse discussion</category>
 <group domain="http://www.oehive.org/proparse_group">Proparse Group</group>
 <pubDate>Thu, 02 Jul 2015 19:06:29 +0000</pubDate>
 <dc:creator>tamhas</dc:creator>
 <guid isPermaLink="false">2312 at http://www.oehive.org</guid>
</item>
<item>
 <title>Remote method calls</title>
 <link>http://www.oehive.org/node/2311</link>
 <description>&lt;p&gt;Given a call to a remote method call:&lt;/p&gt;
&lt;p&gt;    obNominal = new Nominal().&lt;br /&gt;
    chTest = obNominal:SayHi( chTest ).&lt;/p&gt;
&lt;p&gt;which tokenizes as:&lt;/p&gt;
&lt;pre&gt;
ASSIGN        0:0    
    EQUAL    =    66:66    
        Field_ref        0:0    
            ID    chTest    66:66    
        Widget_ref        0:0    
            Field_ref        0:0    
                ID    obNominal    66:66    
            OBJCOLON    :    66:66    
            ID    SayHi    66:66    
            Method_param_list        0:0    
                LEFTPAREN    (    66:66    
                INPUT        0:0&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/proparse_group&quot; class=&quot;og_links&quot;&gt;Proparse Group&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.oehive.org/node/2311&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.oehive.org/node/2311#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/413">Proparse discussion</category>
 <group domain="http://www.oehive.org/proparse_group">Proparse Group</group>
 <pubDate>Tue, 30 Jun 2015 21:58:32 +0000</pubDate>
 <dc:creator>tamhas</dc:creator>
 <guid isPermaLink="false">2311 at http://www.oehive.org</guid>
</item>
<item>
 <title>JPNode:getBlockBuffers</title>
 <link>http://www.oehive.org/node/2310</link>
 <description>&lt;p&gt;OK, trying another path, if I do, on nodes of type BlockNode:&lt;/p&gt;
&lt;p&gt;    define variable mobBlock as class Block no-undo.&lt;br /&gt;
    define variable mobBlockNode as class BlockNode no-undo.&lt;br /&gt;
    define variable mobTableBuffer as class TableBuffer extent 20 no-undo.&lt;/p&gt;
&lt;p&gt;    mobBlockNode = cast( ipobNode, BlockNode ).&lt;br /&gt;
    mobBlock = mobBlockNode:getBlock().&lt;br /&gt;
    mobTableBuffer = mobBlock:getBlockBuffers().&lt;/p&gt;
&lt;p&gt;It compiles, but I get a run time error&lt;br /&gt;
Error: Uninitialized array used as source of assignment. (14906)&lt;br /&gt;
on the last line, whether I provide an number for extent or not.&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/proparse_group&quot; class=&quot;og_links&quot;&gt;Proparse Group&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.oehive.org/node/2310&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.oehive.org/node/2310#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/413">Proparse discussion</category>
 <group domain="http://www.oehive.org/proparse_group">Proparse Group</group>
 <pubDate>Tue, 30 Jun 2015 19:44:22 +0000</pubDate>
 <dc:creator>tamhas</dc:creator>
 <guid isPermaLink="false">2310 at http://www.oehive.org</guid>
</item>
<item>
 <title>Includes</title>
 <link>http://www.oehive.org/node/2309</link>
 <description>&lt;p&gt;PareseUnit:getMarcroGraph returns an object of type IncludeRef which seems like it would be a link to an Include file ... but shouldn&#039;t it them be an array?&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/proparse_group&quot; class=&quot;og_links&quot;&gt;Proparse Group&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <comments>http://www.oehive.org/node/2309#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/413">Proparse discussion</category>
 <group domain="http://www.oehive.org/proparse_group">Proparse Group</group>
 <pubDate>Mon, 29 Jun 2015 21:09:14 +0000</pubDate>
 <dc:creator>tamhas</dc:creator>
 <guid isPermaLink="false">2309 at http://www.oehive.org</guid>
</item>
<item>
 <title>JPNode:getLink()</title>
 <link>http://www.oehive.org/node/2308</link>
 <description>&lt;p&gt;I am trying to use this to get from a statement to the block for the statement.  The doc says:&lt;/p&gt;
&lt;p&gt;java.lang.Object	getLink(java.lang.Integer key)&lt;/p&gt;
&lt;p&gt;in the code I see things like&lt;/p&gt;
&lt;p&gt;public Call getCall() { return (Call) getLink(CALL); }&lt;/p&gt;
&lt;p&gt;but, if I try in ABL to say&lt;/p&gt;
&lt;p&gt;mobBlockNode = cast(ipobNode:getLink(JPNode:BLOCK), BlockNode).&lt;/p&gt;
&lt;p&gt;it tells me&lt;/p&gt;
&lt;p&gt;Parameter 1 for METHOD getLink is not type compatible with its definition. (12905)	&lt;/p&gt;
&lt;p&gt;I have tried a bunch of things for JPNode:BLOCK including -214&lt;/p&gt;
&lt;p&gt;So, what does it want?&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/proparse_group&quot; class=&quot;og_links&quot;&gt;Proparse Group&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <comments>http://www.oehive.org/node/2308#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/413">Proparse discussion</category>
 <group domain="http://www.oehive.org/proparse_group">Proparse Group</group>
 <pubDate>Mon, 29 Jun 2015 19:04:38 +0000</pubDate>
 <dc:creator>tamhas</dc:creator>
 <guid isPermaLink="false">2308 at http://www.oehive.org</guid>
</item>
</channel>
</rss>
