o
a< @ sf d Z ddlmZmZmZmZ ddlmZmZm Z m
Z
mZmZm
Z
mZ dgZdZdZG dd deZdS ) a
pygments.lexers.webassembly
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lexers for the WebAssembly text format.
The grammar can be found at https://github.com/WebAssembly/spec/blob/master/interpreter/README.md
and https://webassembly.github.io/spec/core/text/.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
)
RegexLexerwordsbygroupsdefault)TextCommentOperatorKeywordStringNumberPunctuationNameWatLexer)moduleimportfuncfuncrefstartparamlocaltyperesultexportmemoryglobalmutdatatableelemifthenelseendblockloop)unreachablenopr# r$ r r! r" brbr_ifbr_tablereturncall
call_indirectdropselectz local.getz local.setz local.teez
global.getz
global.setzi32.loadzi64.loadzf32.loadzf64.loadzi32.load8_szi32.load8_uzi32.load16_szi32.load16_uzi64.load8_szi64.load8_uzi64.load16_szi64.load16_uzi64.load32_szi64.load32_uz i32.storez i64.storez f32.storez f64.storez
i32.store8zi32.store16z
i64.store8zi64.store16zi64.store32zmemory.sizezmemory.growz i32.constz i64.constz f32.constz f64.constzi32.eqzzi32.eqzi32.nezi32.lt_szi32.lt_uzi32.gt_szi32.gt_uzi32.le_szi32.le_uzi32.ge_szi32.ge_uzi64.eqzzi64.eqzi64.nezi64.lt_szi64.lt_uzi64.gt_szi64.gt_uzi64.le_szi64.le_uzi64.ge_szi64.ge_uzf32.eqzf32.nezf32.ltzf32.gtzf32.lezf32.gezf64.eqzf64.nezf64.ltzf64.gtzf64.lezf64.gezi32.clzzi32.ctzz
i32.popcntzi32.addzi32.subzi32.mulz i32.div_sz i32.div_uz i32.rem_sz i32.rem_uzi32.andzi32.orzi32.xorzi32.shlz i32.shr_sz i32.shr_uzi32.rotlzi32.rotrzi64.clzzi64.ctzz
i64.popcntzi64.addzi64.subzi64.mulz i64.div_sz i64.div_uz i64.rem_sz i64.rem_uzi64.andzi64.orzi64.xorzi64.shlz i64.shr_sz i64.shr_uzi64.rotlzi64.rotrzf32.abszf32.negzf32.ceilz f32.floorz f32.trunczf32.nearestzf32.sqrtzf32.addzf32.subzf32.mulzf32.divzf32.minzf32.maxzf32.copysignzf64.abszf64.negzf64.ceilz f64.floorz f64.trunczf64.nearestzf64.sqrtzf64.addzf64.subzf64.mulzf64.divzf64.minzf64.maxzf64.copysignzi32.wrap_i64zi32.trunc_f32_szi32.trunc_f32_uzi32.trunc_f64_szi32.trunc_f64_uzi64.extend_i32_szi64.extend_i32_uzi64.trunc_f32_szi64.trunc_f32_uzi64.trunc_f64_szi64.trunc_f64_uzf32.convert_i32_szf32.convert_i32_uzf32.convert_i64_szf32.convert_i64_uzf32.demote_f64zf64.convert_i32_szf64.convert_i32_uzf64.convert_i64_szf64.convert_i64_uzf64.promote_f32zi32.reinterpret_f32zi64.reinterpret_f64zf32.reinterpret_i32zf64.reinterpret_i64c @ s e Zd ZdZdZddgZddgZeedde fee
ejd feg d
e j
fdejfdejfd
ejdfdejfdejfdejfdejfdejfdejfdejfdefdejdfdefgd
ejdfdejdfdejfdejfgdejfd ejfd!ejfd"ejfd#ejfd$ejfd%ejfd&ejfdejdfd'ejfg
defd(ee eejfd)ee eejfd*ee eejfd+ee eejfedgd,Zd-S ).r zdLexer for the `WebAssembly text format `_.
.. versionadded:: 2.9
WebAssemblywastwatz*.watz*.wastz
(?=[^a-z_\.]))suffix arguments)i32i64f32f64z'\$[A-Za-z0-9!#$%&\'*+./:<=>?@\\^_`|~-]+z;;.*?$z\(;nesting_commentze[+-]?0x[\dA-Fa-f](_?[\dA-Fa-f])*(.([\dA-Fa-f](_?[\dA-Fa-f])*)?)?([pP][+-]?[\dA-Fa-f](_?[\dA-Fa-f])*)?z#[+-]?\d.\d(_?\d)*[eE][+-]?\d(_?\d)*z[+-]?\d.\d(_?\d)*z[+-]?\d.[eE][+-]?\d(_?\d)*z.[+-]?(inf|nan:0x[\dA-Fa-f](_?[\dA-Fa-f])*|nan)z [+-]?0x[\dA-Fa-f](_?[\dA-Fa-f])*z[+-]?\d(_?\d)*z[\(\)]"stringz\s+z#pushz;\)z#popz[^;(]+z[;(]z\\[\dA-Fa-f][\dA-Fa-f]z\\tz\\nz\\rz\\"z\\'z \\u\{[\dA-Fa-f](_?[\dA-Fa-f])*\}z\\\\z[^"\\]+z((offset)(=)(0x[\dA-Fa-f](_?[\dA-Fa-f])*)z(offset)(=)(\d(_?\d)*)z'(align)(=)(0x[\dA-Fa-f](_?[\dA-Fa-f])*)z(align)(=)(\d(_?\d)*))rootr8 r: r3 N)__name__
__module____qualname____doc__namealiases filenamesr keywordsr builtinsr
BuiltinTypeVariabler Single Multiliner FloatHexIntegerr r
Doubler Escaper r r tokens rP rP =/usr/lib/python3/dist-packages/pygments/lexers/webassembly.pyr @ s\
N)r? pygments.lexerr r r r pygments.tokenr r r r r
r r r
__all__rC rD r rP rP rP rQ s (&