VT d dl mZ d dlmZ G d d Zd Zd Zd Zd Z e e_
dd
ZeZeZ
eZeZeZdS )
)ParseException)colc $ e Zd ZdZd Zd Zd ZdS )OnlyOncezI
Wrapper for parse actions, to ensure they are only called once.
c @ ddl m} || | _ d| _ d S )Nr )_trim_arityF)corer callablecalled)selfmethod_callr s /builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el9.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/_vendor/pyparsing/actions.py__init__zOnlyOnce.__init__ s0 %%%%%%#K00
c r | j s | ||| }d| _ |S t ||d )NTz.OnlyOnce obj called multiple times w/out reset)r r
r )r sltresultss r __call__zOnlyOnce.__call__ s@ { mmAq!,,GDKNQ#STTTr c d| _ dS )zK
Allow the associated parse action to be called once more.
FN)r )r s r resetzOnlyOnce.reset s
r N)__name__
__module____qualname____doc__r r r r r r r sN U U U r r c fd}|S )zt
Helper method for defining parse actions that require matching at
a specific column in the input text.
c x t || k r$t | |d d S )Nzmatched token not at column {})r r format)strglocntoksns r
verify_colz%match_only_at_col.