Fix writer formatting string generation.
Update writer, fix EBNF definition and allow (* ... *) style comments.