alathon / AwesomeMUD

An awesome MUD in Scala
1 stars 1 forks source link

Allow commands to be constructed through a typed syntax. #9

Open alathon opened 10 years ago

alathon commented 10 years ago

Currently, commands' 'components' List has to be built manually. It would be... ideal, if it allowed a componentsText string as well, which would parse the text into a components list. For example:

componentsText = "'say'|'''; anything?" would be equivalent to components = List(Or(Word("say"), Word("'")), Anything(optional = true))