Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/json/scanner.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@s�dZddlZyddlmZWnek
r?dZnXdgZejdej	ej
BejB�Zd�Z
ep~e
ZdS(sJSON token scanner
i�N(tmake_scannerRs)(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?cs�|j�|j�|j�tj�|j�|j�|j�|j�|j	�|j
�|j�������������fd���S(Nc
sZy||}Wntk
r't�nX|dkrK�||d���S|dkrz�||df������S|dkr��||df��S|dkr�|||d!dkr�d|dfS|dkr�||d!d	kr�|dfS|d
kr0|||d!dkr0t|dfS�||�}|dk	r�|j�\}}}|sl|r��||p{d
|p�d
�}n�|�}||j�fS|dkr�||d!dkr�d�|dfS|dkr|||d!dkr�d�|dfS|dkrP|||d!dkrP�d�|dfSt�dS(Nt"it{t[tnitnullttttruetfitfalsettNitNaNtIitInfinityt-i	s	-Infinity(t
IndexErrort
StopIterationtNonetTruetFalsetgroupstend(tstringtidxtnextchartmtintegertfractexptres(t
_scan_oncetencodingtmatch_numbertobject_hooktobject_pairs_hooktparse_arraytparse_constanttparse_floatt	parse_inttparse_objecttparse_stringtstrict(s"/sys/lib/python2.7/json/scanner.pyRs>


#######(R(R$R)t	NUMBER_REtmatchR R*R&R'R%R"R#(tcontext((RR R!R"R#R$R%R&R'R(R)R*s"/sys/lib/python2.7/json/scanner.pytpy_make_scanners											0%(t__doc__tret_jsonRtc_make_scannertImportErrorRt__all__tcompiletVERBOSEt	MULTILINEtDOTALLR+R.(((s"/sys/lib/python2.7/json/scanner.pyt<module>s

		4

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.