Ok, after reading the "Execution modes" page of the documentation, I understand now that with the -server and -client options, this doesn't launch the Hello World application. I modified the launch script to print the command executed. If i'm typing "inq helloSrv.inq" I get:
"java -Dsun.java2d.nodddraw=true -Dinq.home=/Users/fjossinet/inq1_0_2 com.inqwell.any.parser.Inq helloSrv.inq"
If i'm typing "inq helloClient.inq", I get:
"java -Dsun.java2d.nodddraw=true -Dinq.home=/Users/fjossinet/inq1_0_2 com.inqwell.any.parser.Inq helloClient.inq"
So I think that the command line generated by the script is ok. But, in both cases, nothing happened. BTW, my version of java is 1.5.0_13.
In both these cases, as you can see from your modified script, the shell script is launching the
com.inqwell.any.parser.Inq class. This is the so-called "interactive" mode. You are using Inq like perl, say, just as a plain scripting language and not client server.
If I'm doing "inq -in helloSrv.inq", the application exit with this message:
Inq done
The Inq (parser) has just parsed the file in the local environment, not loaded it into any long-running server. Since it doesn't produce any output that's all you get. You have defined the functions and typedef but then your parser terminates.
If I'm doing "inq -in helloClient.inq", I got a stacktrace for these exceptions:
Inq done
Operand $root.ochannel could not be resolved
com.inqwell.any.AnyRuntimeException: Operand $root.ochannel could not be resolved
Again, by launching the parser (as opposed to the client startup) you have no connection to the server and therefore no
channel connecting you to anything. The helloClient.inq script tries to to the
send initHello(); statement at line 41 and fails.
Then i decided to test the C2F example by typing "inq -in C2F.inq". Then I got a stacktrace for these exceptions:
java.net.UnknownHostException: Users
and
i18n is en
com.inqwell.any.AnyRuntimeException: Operand $catalog.{$root.i18n}.title could not be resolved
May be this is a better place to start - especially as we are OSX-lite...
I think the UnknownHostException is coming from inq's attempt to process the #include line. Perhaps you can provide the full stack trace. It carries on anyway but the files en.inq and fr.inq define the language strings including
title, which it then falls over on...incidentally, if you add "-i18n fr" you get the French strings.
As a brutal fix, comment out the #include line and paste the lines from fr.inq in its place.
Inq forms a URL based on whatever was resolved for C2F.inq. This will be a
file: URL and it seems to be getting confused about the "host" and path components. You could try something like
inq -in file:/Users/fjossinet/..../examples/C2F.inq (or whatever works) to help it along. This is a platform issue, I think, so I need to check it out on OSX.