Fix ambiguity in golang grammar
Remove trailing whitespace from generated c code
Clean up helper functions in example grammars