Eliza is now working again (at least partially. btw: the debug output below is part of sample/eliza2.bas)

$ perl compile.pl samples/eliza2.bas && ../../../parrot TARG_test.imc
Please wait, initializing...(This will take a minute)
I am Eliza, the Computer Psychiatrist

Why have you requested this session?
? Will someone write you a test suite?
Looking for  ARE
Looking for  WERE
Looking for  YOU
Looking for  YOUR
Looking for  I'VE
Looking for  I'M
Looking for  ME
Looking for -
WE WERE DISCUSSING YOU NOT ME.
? Hello?
Looking for  ARE
Looking for  WERE
Looking for  YOU
Looking for  YOUR
Looking for  I'VE
Looking for  I'M
Looking for  ME
Looking for -
HOW DO YOU DO. PLEASE STATE YOUR PROBLEM.

Wumpus also seems to be functional again.

BASIC could really use a test suite: while I've gotten quite a bit working again, there are surely bits that are still broken. For now, just something to minimally exercise all the keywords listed in COMP_expression.pm file would be great.

Most of the fixes remaining will no doubt involve 1) use of specific registers (instead of IMCC virtual registers) or, more likely, 2) use of the old calling conventions. Using explicit :optional parameters where possible (optional args at the end), or @MULTI where necessary (optional args at the beginning) will probably take care of most issues.

Enjoy.

On Oct 7, 2005, at 4:24 PM, Will Coleda wrote:

The BASIC compiler is now (kind of?) working again after the 0.3.0 release. Updates to the new calling conventions. No longer trying to manage the conventions in near-PASM level code.

The windows display code is just commented out, but several of the samples in the compiler (inc. conn4, hanoi) now seem to work.

If you find any problems, please open a ticket.

Regards.



Reply via email to