var/opt/nydus/ops/pycparser/ply/__pycache__/ygen.cpython-38.pyc000064400000003310147206035560020524 0ustar00U af@s:ddlZddlZddZddZddZedkr6edS) NcCsdt|}d|}d|}|D]\}}||rq8q|D]\}}||r<qXq<|d|fS)Nz #--! %s-startz #--! %s-end) enumeratestrip startswithendswith)linestagZsrclinesZ start_tagZend_tag start_indexlineZ end_indexr C/opt/nydus/tmp/pip-target-53d1vnqk/lib/python/pycparser/ply/ygen.pyget_source_range s  r cCsBg}d}d|}|D](}||r.| }q|r||q|S)NTz#--! %s)rrappend)rrZfiltered_linesincludeZtag_textr r r r filter_sections rc Cstjt}ttj|dtj|dttj|dd}|}W5QRXt |d\}}t |d\}}t |d\}}|||} t | d} t | d} | |||<| |||<d d |D}ttj|dd }| |W5QRXt d dS) Nzyacc.pyz yacc.py.bakrZ parsedebugZparseoptzparseopt-notrackDEBUGZTRACKINGcSsg|]}|dqS) )rstrip).0r r r r >szmain..wzUpdated yacc.py) ospathdirname__file__shutilcopy2joinopen readlinesr r writelinesprint) rfrZ parse_startZ parse_endZparseopt_startZ parseopt_endZparseopt_notrack_startZparseopt_notrack_endZ orig_linesZparseopt_linesZparseopt_notrack_linesr r r main's        r$__main__)os.pathrrr rr$__name__r r r r  s