Buckets:
MisterAI/LocalAI_Demo_backends / cpu-diffusers.upgrade-tmp /venv /lib /python3.10 /site-packages /pygments /lexers /cplint.py
| """ | |
| pygments.lexers.cplint | |
| ~~~~~~~~~~~~~~~~~~~~~~ | |
| Lexer for the cplint language | |
| :copyright: Copyright 2006-present by the Pygments team, see AUTHORS. | |
| :license: BSD, see LICENSE for details. | |
| """ | |
| from pygments.lexer import bygroups, inherit, words | |
| from pygments.lexers import PrologLexer | |
| from pygments.token import Operator, Keyword, Name, String, Punctuation | |
| __all__ = ['CplintLexer'] | |
| class CplintLexer(PrologLexer): | |
| """ | |
| Lexer for cplint files, including CP-logic, Logic Programs with Annotated | |
| Disjunctions, Distributional Clauses syntax, ProbLog, DTProbLog. | |
| """ | |
| name = 'cplint' | |
| url = 'https://cplint.eu' | |
| aliases = ['cplint'] | |
| filenames = ['*.ecl', '*.prolog', '*.pro', '*.pl', '*.P', '*.lpad', '*.cpl'] | |
| mimetypes = ['text/x-cplint'] | |
| version_added = '2.12' | |
| tokens = { | |
| 'root': [ | |
| (r'map_query', Keyword), | |
| (words(('gaussian', 'uniform_dens', 'dirichlet', 'gamma', 'beta', | |
| 'poisson', 'binomial', 'geometric', 'exponential', 'pascal', | |
| 'multinomial', 'user', 'val', 'uniform', 'discrete', | |
| 'finite')), Name.Builtin), | |
| # annotations of atoms | |
| (r'([a-z]+)(:)', bygroups(String.Atom, Punctuation)), | |
| (r':(-|=)|::?|~=?|=>', Operator), | |
| (r'\?', Name.Builtin), | |
| inherit, | |
| ], | |
| } | |
Xet Storage Details
- Size:
- 1.39 kB
- Xet hash:
- 94d4d3a2bb06d1bb7ea2db3dde541de58d05d2ac53bb321bd8b301e4be3cec43
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.