Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Baby Step 1

Baby Step 1

Hakiko
Journal of Hakiko · · 1 min read
1,200 0
I have decided to revise my parser and make it OOP. I think I can have a class that would be the input buffer. This class would have functions that parsed out the noun and the verb.

I think I might make noun and verb classes as well. They would be based off of a word base class. I could use this so that in the program I would only have to use a command like verb->action without having to specify which verb I was using.

Still thinking about this, need to plot out my idea on paper at work tomorrow.

Discussion

Loading comments...