ravikumar10 / genyris

Automatically exported from code.google.com/p/genyris
Other
0 stars 0 forks source link

REPL seems to loose prefixes. #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Issue an @prefix statement in the repl on the command-line. 

Then try to use it.

What do you see?

After one or two statements it cannot find the prefix:
H:\>genyris
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootcla
*** Welcome bbirch1, Genyris version 0.9.0-5, h
>
> @prefix foo "http://bar/"
:
> ^foo:12
:
|http://bar/12| # URISymbol
> ^foo:12
:
*** Error - 'Unknown prefix: foo'

What is the expected output?

Prefix should work for the rest of the session. It works within files.

Original issue reported on code.google.com by birchb1...@gmail.com on 5 Aug 2014 at 6:30

GoogleCodeExporter commented 9 years ago
Diagnosis:

The REPL creates a new parser with each input (read):
   while looping
       define bt nil
       catch (errors bt)
           define expression (read true)
           define result (eval expression)

Original comment by birchb1...@gmail.com on 5 Aug 2014 at 11:13

GoogleCodeExporter commented 9 years ago
Fixed in 0.9.1

Original comment by birchb1...@gmail.com on 7 Aug 2014 at 6:55