Skip to main content
GameDev.net gamedev.net
🔒 Locked

text parsers

Started by randomDecay Oct 22, 2001 at 11:45 AM 3 replies 250+ views
Original Post
randomDecay
randomDecay
Hi everyone. I am developing a text game in Win32 Console mode using C++. This game is an adventure game similar to Colossal Cave (Adventure), which has as text parser. Does any one have any links or general info and how to make a text parser for text games? Please respond, thanks.
Diodor
Diodor
There is a complete set of tutorials on flipcode about how to make a script for a game. This tuts may be a bit more advanced than what you need, but they explain how to use Lex (aka Flex, Bison) an app kind of like an wizard for generating C programs that parse text. Very powerfull stuff.

Edited by - Diodor on October 22, 2001 3:27:55 PM
krez
krez
check out this site... it is a text-based parser used for games like zork and whatnot... you can download the compiler to create your own colossal-cave-like games, or just look at the specs and source for ideas...

--- krez (krezisback@aol.com)
--- krez ([email="krez_AT_optonline_DOT_net"]krez_AT_optonline_DOT_net[/email])
randomDecay
randomDecay
Thanks for the flipcode link. The scripting language looks totally like a new language.
Arild Fines
Arild Fines
Hehe...first time I''ve heard bison described as a wizard...

"A society without religion is like a crazed psychopath without a loaded .45"
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.