Skip to main content

Каастомная библиотека по второй лабораторной работе лог. програмирования

Project description

My Library

Это чисто моя демонстрация навыков работы с выгрузкой библиотек для питона. Представленная библиотека является прототипом атомарного компилятора, который мало что умеет, но при переводе в библиотеку рабочких функций не потерял. Для проверки работы предлагаю проверить работу следующей программы

from MyLabLibraryTAM1 import Compiler, Atom, Pair

# Пример работы с библиотекой
compiler = Compiler()

# Тест: создание атомов и пар
atom1 = Atom("42")
atom2 = Atom("24")
pair = Pair(atom1, atom2)

print("Atom1:", atom1.value)
print("Atom2:", atom2.value)

print("Pair sum:", pair.sum())
print("Pair depth:", pair.depth())

# Тест: выполнение программы с компилятором
program = Pair(Atom("var"), Pair(Atom("x"), Pair(Atom("int"), Atom("10"))))


compiler.run(program)

# Проверка значения переменной
var = compiler.find_var("x")
print("Variable x:", var.value)

Installation

Install it using pip:

pip install MyLabLibraryTAM

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mylablibrarytam1-0.1.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

MyLabLibraryTAM1-0.1.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file mylablibrarytam1-0.1.1.tar.gz.

File metadata

  • Download URL: mylablibrarytam1-0.1.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.5

File hashes

Hashes for mylablibrarytam1-0.1.1.tar.gz
Algorithm Hash digest
SHA256 af809385893ededbf818378cab54da401646dfd478a5392f845c25b1e061d8f9
MD5 15a571c59d193e0a64ba9aed2b3bdf22
BLAKE2b-256 0e568e435add409b388ab654fa917b965a34a76f1024153a4dcbcc601de3a5b3

See more details on using hashes here.

File details

Details for the file MyLabLibraryTAM1-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for MyLabLibraryTAM1-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a52af427fe899b4c97149d28b8694c0df15aa6ac32ae50f2f27b88ecc28f2348
MD5 3a6dfd6e4abfdcc19011706c9d54e3d6
BLAKE2b-256 e6ed5905bd0ba38925a3e3e2daa2ad4c0c783b99c6fb97b63c5046b21f2ce6a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page