It is currently Mon Oct 20, 2014 3:59 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Text parser
PostPosted: Sun May 04, 2008 1:11 am 
Offline
User avatar
 WWW  Profile

Joined: Wed Jan 09, 2008 10:23 am
Posts: 359
Location: Glasgow, Scotland
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 14 times
Top
 
 Post subject: Re: Text parser
PostPosted: Mon Nov 09, 2009 11:48 pm 
Offline
User avatar
 Profile

Joined: Sat May 10, 2008 12:38 pm
Posts: 110
Location: Northampton
Hi Francis,

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

Thanks - Neil


Top
 
 Post subject: Re: Text parser
PostPosted: Tue Nov 10, 2009 12:30 am 
Offline
User avatar
 WWW  Profile

Joined: Wed Jan 09, 2008 10:23 am
Posts: 359
Location: Glasgow, Scotland
Thanks Neil. :D

Kind regards,

Francis


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron