I seem to understand a pipe but with recent changes the old documents
confuse me.
An example:
http://www.rexxla.org/events/2012/presentations/NJPipes.pdf
Page 26
[changed sep from ! to | and used pipc for pipe]
pipc "(test) literal arg() | dup 999 | count words | console"
netrexx$ java test some words
Error: Main method must return a value of type void in class test, please
define the main method as:
public static void main(String[] args)
Can I not do this with command line java now?
It is the process that I cannot follow.
Also patched latest checkout with RxModel.
[I should re-verify against latest commits though]
Batched all .njp examples one at a time to look at all the code.
These six pipe examples fail for me:
calltest3.njp
overtest.njp
siptest.njp
spawntest.njp
tcptask.njp
vectort1.njp
pipe (callt3 ) gen 10 | calltest3 | console
callpipe (calltest3_cp3 ) *i_A0: | take first 3 | specs /a/ 1 1-* nextw
| console
59 +++ _s_2 = calltest3()
+++ ^^^^^^^^^
+++ Error: The constructor 'calltest3()' cannot be found in class
'calltest3'
1 +++ class calltest3 extends stage final
+++ ^^^^^
+++ Error: The class 'stage' cannot be found
pipe (overtest_overpipe end ?) var a | a: over b | b: faninany | console
? a: | b:
java.lang.ClassNotFoundException: com.sun.tools.javac.Main
pipe (sipt1 debug 0 ) random 10 | siptest | console
callpipe (siptest_sipcp1 debug 0 ) *i_A0: | take first 1 | *o_A0:
59 +++ _s_2 = siptest()
+++ ^^^^^^^
+++ Error: The constructor 'siptest()' cannot be found in class
'siptest'
1 +++ class siptest extends stage final
+++ ^^^^^
+++ Error: The class 'stage' cannot be found
pipe (spawnt1 stall 60000 debug 0 ) literal a b c d e f g h i j k l m n
o p q r s t u v w x y | split | spawntest
addpipe (spawntest_spawnee stall 15000 debug 0 ) *o_A0: | copy | task
arg(string 'rexx(i)'}
callpipe (spawntest_spawngate stall 15000 debug 0 ) *i_A0: | take first
1 | *o_A0:
62 +++ _s_3 = spawntest()
+++ ^^^^^^^^^
+++ Error: The constructor 'spawntest()' cannot be found in class
'spawntest'
3 +++ class spawntest extends stage final
+++ ^^^^^
+++ Error: The class 'stage' cannot be found
pipe (tcpserv1 stall 30000 end ? debug 11) console | find stop| g: gate
? tcplisten 1958 timeout 20000 | g: | a: deal secondary ? b: faninany |
elastic | a: | copy | tcptask 1 | b: ? a: | copy | tcptask 2 | b: ? a: |
copy | tcptask 3 | b:
callpipe (tcptask_tcplog stall 15000 end ? debug 11) *i_A0: | take first
1 | f: fanin | tcpdata deblock C timeout 10000 linger 1 oneresponse |
elastic | insert /\n/ after | f:
117 +++ _s_9 = tcptask()
+++ ^^^^^^^
+++ Error: The constructor 'tcptask()' cannot be found in class
'tcptask'
123 +++ _s_11 = tcptask()
+++ ^^^^^^^
+++ Error: The constructor 'tcptask()' cannot be found in class
'tcptask'
129 +++ _s_13 = tcptask()
+++ ^^^^^^^
+++ Error: The constructor 'tcptask()' cannot be found in class
'tcptask'
3 +++ class tcptask extends stage
+++ ^^^^^
+++ Error: The class 'stage' cannot be found
pipe (vectort1_vectorp1 stall 1000 -gen) vector arg(string 'F'} |
console | vector arg(string 'T'}
java.lang.ClassNotFoundException: com.sun.tools.javac.Main
|