Obsidian-Shark/Eidolon — pull request #3 by Void-Director (2014-07-03 01:17:28+00:00)
Title: Added a simple parser

Adds a simple parser I know you said you were comfortable using manual string concatenation but it was pretty easy to write so I figured I might as well give you an example of a simple parser. If you don't want to use it you can either leave it in the project and just not use any [] tags or remove the parser.parse calls inside the interpreter (basically undo the changes to intepreter.as below). Either way it the parser will still be available to anyone who wants to use it but won't be used by default.

Using the parser what used to be something like this

> "Some string " + Core.pc.name + " some other string"
> would be "Some string [pc.name] some other string"
> and "Some string " + Core.pc.someDescFunction()+ " some other string"
> would be "Some string [pc.someDescFunction] some other string"

The name and function would still be defined in the Player class.