www.retrosoftware.co.uk
http://www.retrosoftware.co.uk/forum/

Text parser
http://www.retrosoftware.co.uk/forum/viewtopic.php?f=29&t=98
Page 1 of 1

Author:  FrancisL [ Sun May 04, 2008 1:11 am ]
Post subject:  Text parser

Hi there,

I have attached a beta version of the text parser that I am currently developing. To load it just type CHAIN "PARSER".

When the parser is run it will prompt you to enter a command. You can type something as simple as "GET COAT" or something more advanced such as "GO NORTH AND THEN GO WEST. PICK UP THE SWORD, GO NORTH AND THEN DROP THE TREASURE. USE THE KEY WITH THE DOOR.". In each case the parser should correctly tokenise any recognised verbs, list what the direct objects are and, if appropriate, the indirect objects. If the parser encounters a verb which it does not recognise then it will let you know and stop parsing.

What I want to know is if the parser is working as you would expect or if there is anything that it doesn't do that you think it should (or does which shouldn't).

For a list of the included verbs just list the program and look at lines 240 to 300.

The parser is perhaps more advanced than is necessary for The Search For The Lost Football, but it will be necessary for my next text adventure already on the drawing board.

Kind regards,

Francis.

Attachments:
parser_beta.zip [1.08 KiB]
Downloaded 15 times

Author:  NeilB [ Mon Nov 09, 2009 11:48 pm ]
Post subject:  Re: Text parser

Hi Francis,

I realize this is late in the day, just tried the parser and it works very well.

Thanks - Neil

Author:  FrancisL [ Tue Nov 10, 2009 12:30 am ]
Post subject:  Re: Text parser

Thanks Neil. :D

Kind regards,

Francis

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/