Update str mode grammar/add str rules to parse.py.