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.4.tar.gz (5.6 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.4-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mylablibrarytam1-0.1.4.tar.gz
  • Upload date:
  • Size: 5.6 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.4.tar.gz
Algorithm Hash digest
SHA256 6496326cec814342ad708d3cdc42039103cf2ca83eaae0ee68cbcbfc72054ca7
MD5 660ae3cde297390888654230f65a68f3
BLAKE2b-256 07ce0ae70bb853c61e1572c8dc76e19b4b9bc1bfd6c2f1dd4b4d61b8f30c6bb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for MyLabLibraryTAM1-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a616d05dcb4f849633f69aea0cace5704083ecf448bc0559b35142f4055c1c5b
MD5 b6c0e75f2c055b294d872f7fe830c9c7
BLAKE2b-256 020d72323224ba30a29aad5132be08e8fa726d450295d6e3f3f500cde2e6017e

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