Skip to main content

S lang interpreter

Project description

s-lang

s-lang interpreter

Basic usage:

from s_lang import run


def main() -> None:
    inputs = [5]
    code = """
Z <- Z + 1
[A] IF X != 0 GOTO B
IF Z != 0 GOTO E
[B] Y <- Y + 1
X <- X - 1
IF Z != 0 GOTO A
"""

    result: int = run(code, inputs)
    print(result) 


if __name__ == "__main__":
    main()

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

s_lang_mta-0.1.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

s_lang_mta-0.1.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file s_lang_mta-0.1.2.tar.gz.

File metadata

  • Download URL: s_lang_mta-0.1.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.0 Windows/10

File hashes

Hashes for s_lang_mta-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a646299df03c49847e896e0216b22925ece19a150e545d3f8f354ed29f55da6f
MD5 960b1da788c68ba407d21138b2301c7b
BLAKE2b-256 dc89dcbd895148c975108536a0923e88bd8f82dea4e644479830518fa678f11c

See more details on using hashes here.

File details

Details for the file s_lang_mta-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: s_lang_mta-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.0 Windows/10

File hashes

Hashes for s_lang_mta-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e3dd17614970f0f6f5d89e4777580bf157a1ffafe5a4629bf4e4715a33b4e111
MD5 9a40a45adbc225e10858e6f1dd5fdeaa
BLAKE2b-256 83c5668881156325d101a35df895cba266cd40a863f0a1ab2d4cb69aeb61387a

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