1***@gmail.com
2019-05-07 02:59:54 UTC
I recently started writing some OOP classes to represent rooms, items, etc. for IF. I want to try my hand at writing IF, but I have a question.
I would be writing my own parser, at least if I want to use the classes I've written. How difficult is it to create a usable, even if simple, parser? It could be as basic as noun-verb, though I'd prefer something a little bit more sophisticated. I could learn Inform, naturally, but I so far I've enjoyed trying to program this thing myself. Should I write a few simplistic/"naive" parsers first, for practice? What should they do?
I don't have any story for a game yet, but inspiration may come as I program (especially since I have to have some sort of world in place to test parser/world model components as I add them.)
I would be writing my own parser, at least if I want to use the classes I've written. How difficult is it to create a usable, even if simple, parser? It could be as basic as noun-verb, though I'd prefer something a little bit more sophisticated. I could learn Inform, naturally, but I so far I've enjoyed trying to program this thing myself. Should I write a few simplistic/"naive" parsers first, for practice? What should they do?
I don't have any story for a game yet, but inspiration may come as I program (especially since I have to have some sort of world in place to test parser/world model components as I add them.)