Skip to main content

Gear is a multi-target lalnguage and compiler with inline compilation instructions.

Project description

Gear

Gear is a logic based compiler for the Gear language.

Installation

pip install gearlang

Development

First, make sure you have poetry installed and then build the project using the following command:

pip install poetry

Don't forget to add your Python installation's Scripts directory to your PATH if you haven't already. Here is a guide on how to do it.

Then, you can build the project using the following commands:

poetry build
poetry install

You can then interact with the CLI using the following command:

poetry run gear

To update pyproject.toml after adding a new dependency, use the following command:

poetry lock

Compiling Grammar

./scripts/compile-antlr.bat

Compiling Gear

As C Library

make lib

As Binaries

On current OS
make build
All targets

Only on Linux and MacOS or WSL/Git Bash on Windows

make compile-all

Troubleshooting

If the CLI is not working, make sure that the Scripts directory of your Python installation is in your PATH. Here is a guide on how to do it.


License - MIT

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

gearlang-0.0.12.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

gearlang-0.0.12-py3-none-any.whl (2.7 MB view details)

Uploaded Python 3

File details

Details for the file gearlang-0.0.12.tar.gz.

File metadata

  • Download URL: gearlang-0.0.12.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for gearlang-0.0.12.tar.gz
Algorithm Hash digest
SHA256 d5e689f1908e6e4a177c13b758f3e446ccacd8ca1cadce3383ad6d0f40d18094
MD5 ce2b6233d8378b9427f9235e4bc1376b
BLAKE2b-256 5fa187cc75138ab51e56486105d4a7baa218ca08dc57670bee3c103627ec04ce

See more details on using hashes here.

File details

Details for the file gearlang-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: gearlang-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for gearlang-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 73bbf641ce8a8308381f6e6368a8bf3671564d267cbe68d6df7f9fff31ccf2a4
MD5 8b293b943666da14851e49304249f43b
BLAKE2b-256 31ade0031274629962c77951189e862e2c29c8399edb239766c29a143f358530

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page