Skip to main content

Read and process Python subset

Project description

PLG-READER

PLG-READER - это токенизатор (лексер) для компилятора py2glua. Он читает файлы разных типов и превращает их в единый список IR-токенов.

Библиотека не выполняет код.

Зачем нужна эта библиотека?

Чтобы компилятор мог единообразно читать все четыре типа файлов и сразу получать IR с правильными метками.

Поддерживаемые типы файлов

Расширение Что это на самом деле
.py Обычный Python-код
.pyi Файл-описатель (stub)
.plg-d Алиас на внешний аддон (динамическая ссылка)
.plg-s Код, компилируемый внутрь аддона (статический)

ТЕХ ДОЛГ

  • Выписать ошибки более человеческим языком
  • Нормально пинпоинтеть позицию ошибок (наверное имеет смысл сделать чё-то типо как в питоне?)

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

pylovegmod_reader-0.0.4.tar.gz (75.0 kB view details)

Uploaded Source

Built Distribution

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

pylovegmod_reader-0.0.4-py3-none-any.whl (85.4 kB view details)

Uploaded Python 3

File details

Details for the file pylovegmod_reader-0.0.4.tar.gz.

File metadata

  • Download URL: pylovegmod_reader-0.0.4.tar.gz
  • Upload date:
  • Size: 75.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pylovegmod_reader-0.0.4.tar.gz
Algorithm Hash digest
SHA256 dc23f4ae085f655a5296bbaeb99a963bbcc9b3d780730ee2a511963d2ce1c18d
MD5 94819dcfd9bc63d4cb016791120c8e12
BLAKE2b-256 e7774116a5ce958e6d3a17411ad9e7c78972795b0a2af27c2c9c54a89bfaa61b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylovegmod_reader-0.0.4.tar.gz:

Publisher: publish.yml on py-love-gmod/plg-reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pylovegmod_reader-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pylovegmod_reader-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f8d63545391a0c57ff5d2d918799d4cada488d0e1acc1f190588a302d469c004
MD5 9b28ff521834351f4526b91d7e4b24b5
BLAKE2b-256 1104900dd3ab519cc9722880122f8b1e6bac1780d921f6e496ec44df54e6c0e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylovegmod_reader-0.0.4-py3-none-any.whl:

Publisher: publish.yml on py-love-gmod/plg-reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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