Skip to main content

YAPI-heureka-code

Tokens angeben

Beispiel MuNa

group = YAPIGroup(
    keywords=[
        Token("SET"),
        Token("TO"),
        Token("COUNTER"),
        Token("ITERATOR")
    ],
    operators=[
        Token("SLASH", "/"),
        Token("PIPE", "|"),
        Token("DOPPELPUNKT", ":"),
        Token("KLEINER", "<"),
        Token("GROESSER", ">")
    ],
    other=[
        TokenGroup("CharsetDefinition", [
            Token("DIGITS"),
            Token("LETTERS"),
            Token("UPPER"),
            Token("LOWER")
        ])
    ]
)

Hierdurch werden die Keywords, die Operatoren und andere Tokens der Sprache festgelegt. Hier muss dann allerdings auf Groß- und Kleinschreibung geachtet werden. Hier wird alles großgeschrieben.

YAPI definieren

yapi = YAPI(group)
print(yapi.execute("SET <?DIGITS|2|gross?> TO <?gross?>"))

Über das Instanziieren der Klasse YAPI können Statements ausgeführt werden.

Metadata

Release files for YAPI-heureka-code 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for YAPI-heureka-code 1.1.2
File Size Uploaded
YAPI-heureka-code-1.1.2.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for YAPI-heureka-code 1.1.2
File Interpreter ABI Platform
YAPI_heureka_code-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / YAPI-heureka-code-1.1.2.tar.gz

Download URL YAPI-heureka-code-1.1.2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
264979bf7b3353a23d202d7c6016ab71021276d15fb1e8eec45b58cb4d1de1cc
BLAKE2b-256 checksum
How to use checksums
b3cd41d8682d273ed0e01d5b18ebc24b5a7062b2125e58939524419d905fe041
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

Release files / YAPI_heureka_code-1.1.2-py3-none-any.whl

Download URL YAPI_heureka_code-1.1.2-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f773e4b75c69a7b2abf722e37cfd64e7139c88977ece09d422b4c1e61d71b4bc
BLAKE2b-256 checksum
How to use checksums
23ce0f594752cd5fdd5b067492bc59e02b4439fbc0b552d5008a460face0312a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page