in reply to Adventures in Perl 6

Nice work! Good to see a hand-rolled IF parser using an honest-to-goodness grammar instead of a collection of hacks.

Incidentally, have you seen Inform 7? A very interesting language...

~dewey

Replies are listed 'Best First'.
Re^2: Adventures in Perl 6
by nferraz (Monk) on May 08, 2007 at 17:30 UTC

    That's a really interesting approach to interactive fiction!

    According to the manual, the world is defined with assertions like these:

    The wood-slatted crate is in the Gazebo. The crate is a container. Mr Jones wears a top hat. The crate contains a croquet mallet.

    The manual also explains that "the world described by these assertions is the starting condition of the game: what happens when play begins is another matter. If somebody picks up the crate and walks off with it, then it will no longer be in the Gazebo. Mr Jones may remove his hat".

    Really really interesting.