[RPL/2] How to start the interactive mode?

BERTRAND Joël joel.bertrand at systella.fr
Thu Jun 27 11:05:35 CEST 2013


Michael K wrote:
> Hi,

	Hello,

> I tried to run rpl in interactive mode as seen on the screenshots. I
> used the "-i" switch as seen in the screenshots and in the help, but it
> does not do what i expect. I get:
>
> $ ./rpl -i
> +++RPL/2 (R) version 4.1.14 (Wednesday 06/26/13, 17:16:59 CEST)
> +++Copyright (C) 1989 to 2012, 2013 BERTRAND Joel
>
> +++This is a free software with absolutely no warranty.
> +++For details, type 'warranty'.
>
> +++Fatal : Error in compilation
> $
>
> With both the 4.1.14 (latest stable tarball) and the 4.1.9 (binary
> version). I however expected a interactive prompt. How do i get there?

	Very strange. This message comes from src/messages.c line 2166. If I 
check s_etat_processus->erreur_compilation, this variable is only set by 
compilation() in compilation.c and first messages() call only appears 
_after_ compilation(). And this message comes from default case that 
does never be called.

	Can you please uninstall RPL/2 (both binary with apt-get remove --purge 
rpl and built in place version with make uninstall), rebuild RPL/2 from 
scratch, run RPL/2 with "LANG=C rpl -is -t FFF" and post its output 
here. You should obtain :

schroedinger:[~/cvs/rpl/src] > LANG=C rpl -is -t FFF
+++RPL/2 (R) version 4.1.15 (Friday 06/21/13, 15:55:48 CEST)
+++Copyright (C) 1989 to 2012, 2013 BERTRAND Joel

+++This is a free software with absolutely no warranty.
+++For details, type 'warranty'.

[27894] Temporary files path /tmp

[27894] Pushing on system stack

[27894] Preprocessing

[27894] Compilation
[27894] Compilation : MODE_INTERACTIF definition ($ 000000000000000F)
[27894] Analysis
[27894] Execution
[27894] MODE_INTERACTIF instruction
[27894] Execution : Branching at MODE_INTERACTIF definition
[27894] Pushing on system stack (instruction MODE_INTERACTIF)
[27894] << instruction
[27894] Pushing on system stack (instruction <<)
[27894] Initialization of level 1
[27894] DO instruction
[27894] Pushing on system stack (instruction DO)
[27894] HALT instruction
RPL/2> abort
[28085] Analysis
[28085] Pushing a type 6 object (depth 1)
[28085] Pushing a type 6 object (depth 2)
[28085] Pushing a type 6 object (depth 3)
[28085] Pulling a type 6 object (depth 3)
[28085] Pulling a type 6 object (depth 2)
[28085] Pulling a type 6 object (depth 1)
[28085] Pushing a type 17 object (depth 1)
[28085] Pushing on system stack (instruction UNTIL)
[28085] Pulling a type 17 object (depth 1)
[28085] Pushing on system stack (instruction <<)
[28085] Initialization of level 2
[28085] RPL/SIGABORT (thread 140272446265408)
[28085] Pulling from system stack (instruction ABORT)
[28085] UNTIL instruction
schroedinger:[~/cvs/rpl/src] >

	Regards,

	JKB


More information about the RPL2 mailing list