grom358/pharborist — pull request #83 by phenaproxima (2014-09-07 18:41:01+00:00)
Title: Created Node::fromScalar(). (#80)

Added a method to create a new StringNode, FloatNode, or IntegerNode from a scalar. I had to override setText() in StringNode to account for quoting. I wrote some tests, and it passes, but the quoting stuff was a bit hairy and I don't know the PHP grammar anywhere near as well as you do, so I dunno if this will pass muster. Nevertheless...