Parse the given text and return a resultant Value type. Also sets the document value.
See Implementation
Parse the given text and return a resultant Value type. Also sets the document value.