I've created an Icon evaluator called Mapr ( short for main procedure
). It evaluates every Icon expression that is entered, and if you want
the result of several, you have two options, either use brackets and
parenthesis in the usual fashion, or declare your own procedures. The
user declared procedures can be used in subsequent expressions and
procedures, and can be saved to a file. Type 'bye' to exit the program
and 'mapr ?' or 'mapr help' for help. You can see the source code at:
http://www.costarricense.cr/pagina/ernobe/mapr.txt
The program prints out that which the expressions or procedures write
and the result of them. For example,
$ mapr
procedure main()
_
it begins printing out the main procedure declaration, then if you
write this:
$ mapr
procedure main()
write( "hello world" )
it will respond with this:
$ mapr
procedure main()
write( "hello world" )
end
hello world
result : "hello world"
I have only one problem, and it is that I haven't been able to get it
to work on Windows ( in Windows emulator Wine ). It reports that it is
unable to execute nticonx ( with nticont -s mapr.icn -x ). Can anyone
help me get it to work on Windows?


|