Update lang def 3 to match parse.py.
Drop unused global mode_result code.