Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/pygments/lexers/__pycache__/ |
Upload File : |
o ���a�- � @ s d Z ddlZddlmZmZmZmZmZ ddlm Z m Z mZmZm Z mZmZmZmZmZ ddlmZ g d�ZG dd� de�ZG d d � d e�ZG dd� de�ZG d d� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZdS )z� pygments.lexers.lisp ~~~~~~~~~~~~~~~~~~~~ Lexers for Lispy languages. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)� RegexLexer�include�bygroups�words�default) �Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Literal�Error)�PythonLexer) �SchemeLexer�CommonLispLexer�HyLexer�RacketLexer�NewLispLexer�EmacsLispLexer� ShenLexer� CPSALexer�XtlangLexer�FennelLexerc @ s� e Zd ZdZdZddgZddgZddgZej ej B Zd Zd Z dZed�ged �gdejfdejdfdedfdefdefdejdfdejdfdedfde ejdfdejdfdejdfdefdd�dd � eD �� edfd!e ejdfd"e ejdfd#d�d$d � e D �� ej dfd%e ej!dfeejdfd&e"dfd'e"d(fgdejd)fd*ejdfd+ejfd,ejfgd-ed)fd.edfd/efgd0�Z#d1S )2r a� A Scheme lexer, parsing a stream and outputting the tokens needed to highlight scheme code. This lexer could be most probably easily subclassed to parse other LISP-Dialects like Common Lisp, Emacs Lisp or AutoLisp. This parser is checked with pastes from the LISP pastebin at http://paste.lisp.org/ to cover as much syntax as possible. It supports the full Scheme syntax as defined in R5RS. .. versionadded:: 0.6 �Scheme�scheme�scmz*.scmz*.ssz text/x-schemezapplication/x-scheme)�lambda�define�if�else�cond�and�or�case�let�let*�letrec�begin�do�delay�set!�=>�quote� quasiquote�unquote�unquote-splicing� define-syntax� let-syntax� letrec-syntax�syntax-rules)��*�+�-�/�<�<=�=�>�>=�abs�acos�angle�append�apply�asin�assoc�assq�assv�atan�boolean?�caaaar�caaadr�caaar�caadar�caaddr�caadr�caar�cadaar�cadadr�cadar�caddar�cadddr�caddr�cadr�call-with-current-continuation�call-with-input-file�call-with-output-file�call-with-values�call/cc�car�cdaaar�cdaadr�cdaar�cdadar�cdaddr�cdadr�cdar�cddaar�cddadr�cddar�cdddar�cddddr�cdddr�cddr�cdr�ceiling� char->integer�char-alphabetic?� char-ci<=?� char-ci<?� char-ci=?� char-ci>=?� char-ci>?� char-downcase�char-lower-case?� char-numeric?�char-ready?�char-upcase�char-upper-case?�char-whitespace?�char<=?�char<?�char=?�char>=?�char>?�char?�close-input-port�close-output-port�complex?�cons�cos�current-input-port�current-output-port�denominator�display�dynamic-wind�eof-object?�eq?�equal?�eqv?�eval�even?�exact->inexact�exact?�exp�expt�floor�for-each�force�gcd� imag-part�inexact->exact�inexact?�input-port?� integer->char�integer?�interaction-environment�lcm�length�list�list->string�list->vector�list-ref� list-tail�list?�load�log� magnitude� make-polar�make-rectangular�make-string�make-vector�map�max�member�memq�memv�min�modulo� negative?�newline�not�null-environment�null?�number->string�number?� numerator�odd?�open-input-file�open-output-file�output-port?�pair?� peek-char�port?� positive?� procedure?�quotient� rational?�rationalize�read� read-char� real-part�real?� remainder�reverse�round�scheme-report-environment�set-car!�set-cdr!�sin�sqrt�string�string->list�string->number�string->symbol� string-append�string-ci<=?�string-ci<?�string-ci=?�string-ci>=?�string-ci>?�string-copy�string-fill!� string-length� string-ref�string-set!� string<=?�string<?�string=?� string>=?�string>?�string?� substring�symbol->string�symbol?�tan�transcript-off� transcript-on�truncate�values�vector�vector->list�vector-fill!� vector-length� vector-ref�vector-set!�vector?�with-input-from-file�with-output-to-file�write� write-char�zero?�[\w!$%&*+,/:<=>?@^~|-]+�scheme-root�valuez;.*?$�#\|�multiline-commentz#;\s*\(�commented-formz#!r6rs�\s+� -?\d+\.\d+�#pop�-?\d+�"(\\\\|\\[^\\]|[^"\\])*"�'�'