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.3.tar.gz (5.9 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.3-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mylablibrarytam1-0.1.3.tar.gz
  • Upload date:
  • Size: 5.9 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.3.tar.gz
Algorithm Hash digest
SHA256 399fe8b948561da59cb8a90cd4f3fec5fecbc578ea2db1bcdc30bb2b025ac9b9
MD5 995eaa2614a30b7c93e2e8e2a736595a
BLAKE2b-256 3c9dd807dcaf5f73f723c7ee6f003f13f1256a276727f1f52064fc8afecb86c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for MyLabLibraryTAM1-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a572bdb8606839cb5c120c8dcd452ba21828c222449913fb5c35a969bd5c65ce
MD5 6b1152f82488ed1ee5d8c86183d96e1f
BLAKE2b-256 4a406905b06f44383318bfe00432a01e327163243c9e9192416cf26a011cc254

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