csv_to_grammar: handle syntax errors and comments