j
\ S r SSKJrJr SSKJrJrJrJrJ r J
r
JrJr S/r
" S S\5 rg)z
pygments.lexers.snobol
~~~~~~~~~~~~~~~~~~~~~~
Lexers for the SNOBOL language.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
)
RegexLexerbygroups)TextCommentOperatorKeywordNameStringNumberPunctuationSnobolLexerc
r \ rS rSrSrSrS/rS/rS/rSr Sr
S \4S
\S4S\4S
\
R S4S\
R S4S\S4/S\S4S\4S\
R 4S\
4S\4S\4S\4S\R( 4S\R* 4S\S4S\4/S\S4S\4S\4S\" \\
R \5 4/S \R0 4/S!.rS"rg#)$r
z
Lexer for the SNOBOL4 programming language.
Recognizes the common ASCII equivalents of the original SNOBOL4 operators.
Does not require spaces around binary operators.
Snobolsnobolz*.snobolz
text/x-snobolz"https://www.regressive.org/snobol4z1.5z\*.*\nz[+.] statementz-.*\nzEND\s*\nheredocz[A-Za-z$][\w$]*z\s+z\s*\nz#popz(?<=[^\w.])(LT|LE|EQ|NE|GE|GT|INTEGER|IDENT|DIFFER|LGT|SIZE|REPLACE|TRIM|DUPL|REMDR|DATE|TIME|EVAL|APPLY|OPSYN|LOAD|UNLOAD|LEN|SPAN|BREAK|ANY|NOTANY|TAB|RTAB|REM|POS|RPOS|FAIL|FENCE|ABORT|ARB|ARBNO|BAL|SUCCEED|INPUT|OUTPUT|TERMINAL)(?=[^\w.])z[A-Za-z][\w.]*z\*\*|[?$.!%*/#+\-@|&\\=]z"[^"]*"z'[^']*'z[0-9]+(?=[^.EeDd])z%[0-9]+(\.[0-9]*)?([EDed][-+]?[0-9]+)?:gotoz[()<>,;]z#pop:2zF|Sz(\()([A-Za-z][\w.]*)(\))z.*\n)rootr r r N)__name__
__module____qualname____firstlineno____doc__namealiases filenames mimetypesurl
version_addedr r r Labelr Builtinr r
r IntegerFloatr r Heredoctokens__static_attributes__r I/usr/lib/rads/venv/lib/python3.13/site-packages/pygments/lexers/snobol.pyr
r
sD DjGI !I
.CM
{K0
w
$**i0
[9
T;'
tV$
TNM \\
% )(3
#FNN3
5v||D
;'
+&+
2 tX&
TN
W
(
k4::{
;
=
fnn%
]1Fr* N)r pygments.lexerr r pygments.tokenr r r r r r
r r __all__r
r r* r+