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.2.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.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mylablibrarytam1-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 cc7cce39e74e13e174ea75f0bf31901083e00ac4c10c6b78841196985996e654
MD5 c4c77877293abe6e3fe69db1f2623048
BLAKE2b-256 9a949b2d03e0ca35b59f8c09ab5c8c0efdb36d2c59a17d11491d81c550929d1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for MyLabLibraryTAM1-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6eca057b9af6081c13a2d49a49fbda0fcc46bd3920bcef8d48c9b94d6e041c50
MD5 ee26d940b60988534466d99607073aba
BLAKE2b-256 5d3725d770918b9775a17ee1b953f051472b0e38736ffb71897c7149b945fb6a

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