add grammar for auto parser