Finish the grammar for todo