Tidy up: handle symbolic tokens better; no need for a separate write function
Split generic utils functions from validate grammar part
Fix incorrect variable reference
Invalid ValidGrammar.valid instead of Utils.valid
Invalid ValidGrammar.valid instead of Utils.valid
Merge pull request #24 from nvasudevan/split_generic_utils_from_valid_functionality

Split generic utils from valid functionality