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.5.tar.gz (75.4 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.5-py3-none-any.whl (85.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylovegmod_reader-0.0.5.tar.gz
  • Upload date:
  • Size: 75.4 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.5.tar.gz
Algorithm Hash digest
SHA256 5864ecbf955726ea27100446d3c52d3e723feb1d314580d03fd97a72608f3a5f
MD5 2a5bd3f5fa7b10a9e5f23e2c697a6a2d
BLAKE2b-256 39566d6ac6f2fe5225f3cac539406fb3b7b6060e2ce274724a9056bc366e8b4f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pylovegmod_reader-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 429fea8734b70e3cb8872a627b1a1d33b6bafa933576e33b512886d7b31d6093
MD5 efe11c4155208331fbc1c236497828dd
BLAKE2b-256 225098f9b691a5fa3dbe2ec2e788d5cffd35e0339be4e3b401ae0b3b8d1a7d6e

See more details on using hashes here.

Provenance

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