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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylovegmod_reader-0.0.3.tar.gz
  • Upload date:
  • Size: 65.8 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.3.tar.gz
Algorithm Hash digest
SHA256 0a06ba2d3b47482e99e3fb9a07e964b4b00f688bf3dae439fd9a1ad432a2e663
MD5 28185129e1613e5b1be0c425c867753d
BLAKE2b-256 0cf58d0b6db8a94756262e6c739e9ff302e15205a6fac2ea543047bffa854f40

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylovegmod_reader-0.0.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pylovegmod_reader-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e32c2c5745b3b0aeef7d4b0d34f6c82d73ba4eeb17476e96dc11718577c04d84
MD5 b2a2d9ee69502cfdcaed93fcb6bcc6fa
BLAKE2b-256 a8af3e0ddc7a19ecf49a43bbc3e66870541dee4df131d3fd1aaa18fa67019a80

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylovegmod_reader-0.0.3-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