a
    Dfk                     @   s^   d Z ddlZddlmZmZ ddlmZmZmZm	Z	m
Z
mZmZmZ dgZG dd deZdS )z
    pygments.lexers.comal
    ~~~~~~~~~~~~~~~~~~~~~

    Lexer for COMAL-80.

    :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    N)
RegexLexerwords)Comment
WhitespaceOperatorKeywordStringNumberNamePunctuationComal80Lexerc                   @   s"  e Zd ZdZdZdZddgZddgZdZe	j
Zd	Zd
Zdejfdefdefde ejfeg dedejfeg dedejfeg dedejfeg dedejfeg dedejfdedfed ejfed efdejfdejfdejfdej fde!fgdefdej"fded fgd!Z#d"S )#r   z#
    For COMAL-80 source code.
    zCOMAL-80z#https://en.wikipedia.org/wiki/COMALZcomalZcomal80z*.cmlz*.comal u   \b(?!['\[\]←£\\])u   [a-z]['\[\]←£\\\w]*z//.*\nz\s+u   :[=+-]|\<\>|[-+*/^↑<>=]z(and +then|or +else))	andZbitandZbitorZbitxordivinmodnotor)suffix)?appendatZcasechainclosecopycreatecursordatadeletedirZdoelifelseendZendcaseendifZendforZendloopZendtrapZendwhileexecexitfileforgotohandlerifinputZletZloopmountnullZofopenZ	otherwiseoutputpagepassZpokeprintrandomreadrepeatreportreturnrenamerestoreselectstepstopsysZthentoZtrapunitzunit$ZuntilZusingwhenwhilewritezone)
closedZdimZendfuncZendprocZexternalfuncimportprocrefZuse)absZatnzchr$cosZeodeoferrZerrfileZerrtextescexpintzkey$lenlogordpeekZ	randomizeZrndZsgnsinzspc$Zsqrzstatus$zstr$tabtantimeval)falsepitrue"stringz:(?=[ \n/])z[$#]?z%[01]+z\$[0-9a-f]+z\d*\.\d*(e[-+]?\d+)?z\d+z[(),:;]z[^"]+z"[0-9]*"z#pop)rootr\   N)$__name__
__module____qualname____doc__nameurlaliases	filenamesZversion_addedre
IGNORECASEflagsZ_suffixZ_identifierr   Singler   r   Wordr   r   ZReservedZDeclarationr
   ZBuiltinConstantr   ZLabelr	   ZBinZHexZFloatZIntegerr   ZEscapetokens rm   rm   b/nfs/NAS7/SABIOD/METHODE/ermites/ermites_venv/lib/python3.9/site-packages/pygments/lexers/comal.pyr      s`   	

%)ra   rf   Zpygments.lexerr   r   Zpygments.tokenr   r   r   r   r   r	   r
   r   __all__r   rm   rm   rm   rn   <module>   s
   
(