Skip to main content

GS2 Script Compiler - Compiles Graal Script 2 to bytecode

Project description

gs2-parser

This is a compiler for the Graal Script 2 (GS2) language.

Prerequisites

Before building, clone the repository and recursively clone the submodules:

git clone git@github.com:xtjoeytx/gs2-parser.git --recursive

Building

You can build the project using CMake:

mkdir build
cd build
cmake ..
make -j $(nproc)

Building (Wasm)

First, ensure you have Emscripten installed. Then, you can build the project using CMake:

mkdir build
cd build
emcmake cmake ..
make -j $(nproc)

The resulting gs2test.js file can be imported into a webpage.

Running

The non-wasm build can be run using the following command:

$ ./gs2test ../scripts/asd2.txt
Argc: 2
Args: ../scripts/asd2.txt
Compiling file ../scripts/asd2.txt
Compiled in 0.001322 seconds
 -> saved to ../scripts/asd2.gs2bc
Total length of bytecode w/ headers:   160

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

gs2compiler-1.1.4-cp313-cp313-win_amd64.whl (191.8 kB view details)

Uploaded CPython 3.13Windows x86-64

gs2compiler-1.1.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (251.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

gs2compiler-1.1.4-cp313-cp313-macosx_11_0_arm64.whl (179.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

gs2compiler-1.1.4-cp312-cp312-win_amd64.whl (191.8 kB view details)

Uploaded CPython 3.12Windows x86-64

gs2compiler-1.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (252.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

gs2compiler-1.1.4-cp312-cp312-macosx_11_0_arm64.whl (179.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

gs2compiler-1.1.4-cp311-cp311-win_amd64.whl (190.7 kB view details)

Uploaded CPython 3.11Windows x86-64

gs2compiler-1.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (253.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

gs2compiler-1.1.4-cp311-cp311-macosx_11_0_arm64.whl (179.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

gs2compiler-1.1.4-cp310-cp310-win_amd64.whl (189.8 kB view details)

Uploaded CPython 3.10Windows x86-64

gs2compiler-1.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (252.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

gs2compiler-1.1.4-cp310-cp310-macosx_11_0_arm64.whl (178.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

gs2compiler-1.1.4-cp39-cp39-win_amd64.whl (191.2 kB view details)

Uploaded CPython 3.9Windows x86-64

gs2compiler-1.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (252.6 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

gs2compiler-1.1.4-cp39-cp39-macosx_11_0_arm64.whl (178.6 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

gs2compiler-1.1.4-cp38-cp38-win_amd64.whl (189.6 kB view details)

Uploaded CPython 3.8Windows x86-64

gs2compiler-1.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (252.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

gs2compiler-1.1.4-cp38-cp38-macosx_11_0_arm64.whl (178.3 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file gs2compiler-1.1.4-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5edb3420c53784dc1ea5744d3430fef6d064944f544286d641484b83ca7634bb
MD5 0069bee2a37a7ab0625e5198f4853af9
BLAKE2b-256 ff6aaf0be2d7c459a1874d48be585f3280a0be9a2721183c5f8e1ae349ebeb9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp313-cp313-win_amd64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 56d07515af1bd71a3453341a2b2f5d4e17e60c31fc5583f28804918061a6e99a
MD5 80edbf3a7533836e908dec28c3b09bf8
BLAKE2b-256 66591f9dbe00546628357127eebc8ceee932dc1a33bc0ba9fbe2016605b0360d

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8519df8cd8d03d15efde86659411fdcad10315da55300f65fdfb165de76ede5d
MD5 c1bcb2a28ff832cbd564f10171acf7fa
BLAKE2b-256 b9c6091ae0e957c94636301b690fbfb18e7238e37da5ad00eab7dca48ecffe84

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6d881d4716d1f708aea81c1bcaaa7092587b77b174db73470fa527635d993459
MD5 97dd8fdb2d44e697539ada5956770ff4
BLAKE2b-256 bc05fdb1b41b2c128f38031d0b848576b1200fe00a0f77bcdbad053872dbc7f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp312-cp312-win_amd64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 abe4a4a8097817728b5f2cbd9795be4cbf963f3ec64c4cc099e38228a02fca66
MD5 3a0fac2492c87c1460960c0d32962acc
BLAKE2b-256 96298185e50cc6d08a6abd0a4c1d3fd0b81a5daf4ae540fc46cc27f384814212

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa0c9c23b069bb96886bae68908396ad59294f19b40c00ce74716880b631924a
MD5 893288264169237f8a5f045dc0315929
BLAKE2b-256 cba111585b72937a3f9286b5bd9bd992e92be7eb99af0e3a34ce49bda1210a40

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3d9dcd2356aaad42a853061c16baebfad9c6c403ed325cde4c8cf3618ef729d4
MD5 6458446611d899767e2104e72cfa7450
BLAKE2b-256 29c33059c377d80d84e203bafb745fd108f4965391f6f02befcf675f9ecbf3ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp311-cp311-win_amd64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 447915ead81d0c97103b7b956a6c6aa235a8fc46f6584702d778fdf85fb0a681
MD5 e722ec8fd754c9f78d236843a92d5c50
BLAKE2b-256 76e9bf0fcfb38a5cb2d6fd62654163585eb04afee892347eb814b23a860aae57

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd8af44260480694f5c5617ac4a2055fac210af466dba72196ef86cb22b578bd
MD5 698593e74713ac82daec7150a7ba20b7
BLAKE2b-256 d70a4206140ab7d30c5fda2490b6946cc57406da8edf8deb537f91ebc5b2e65c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c1d477d7098565de25c89412664e9c412f3bb630515d5d18e6bdc33c2ef89c23
MD5 50d46573774329780dd25b5efc3f9b61
BLAKE2b-256 d7b0c683285ecbe0d93dca4a7e68b22a1b89dd0d70651c1e48e0c5d9de4c4125

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp310-cp310-win_amd64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b650b8d68becb1aa4fb44d654eef29882ee7ac1f09b1d3978033c13dcc03a123
MD5 11c739ba6b7b1dd509bee7ae73b385dc
BLAKE2b-256 691919859e7a5a27de392f2001265ba6f7ef1cb564c771214565a9e6366890db

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7df9f37232821d4628caf1c493bd945536debe8f12f5a97c95913a1d2e50389d
MD5 d11ea3684476260e6768d8879ecab90e
BLAKE2b-256 7405f067153d593ecbb9322ac32a20b17109773ecbfc986794bc850fe9dbe54c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: gs2compiler-1.1.4-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 191.2 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gs2compiler-1.1.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6c7617a0f38c9f29f0901b780c1a8dd5c2313cab388cd76c1fba08b3c8f86ac1
MD5 ff896c1b1f6bd6acd53d08f00f68895e
BLAKE2b-256 383a0dee1662189eafb20d3a83ea25a0aae102897e6595be052b95836f741fbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp39-cp39-win_amd64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ee9cb883edb48294664ebfd13ddfa6884fc41a189b75442d4961c949227ccf14
MD5 76ccdbac4f68fd51b5375faa51cbf49a
BLAKE2b-256 ac5e966fc8f3b678abadd7e85011a07600043e65b1a2b5aec29ff8e3e831dc33

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e50fe015c89d63a47817b2e3dc6a048ff2dd9be5c6f44d478339f27c7477db32
MD5 c7c168c85b8852e0cb8ed59072af1c41
BLAKE2b-256 bdf6a0ffa127b12da94b289eeba57ec401bd24b8b1ab08dcd03bef032eefaa3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: gs2compiler-1.1.4-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 189.6 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gs2compiler-1.1.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a02300c7bf16739538146cb54dc1ba6833956f9908e02a79b27395397f65f684
MD5 f3d5fa058aa184904ecefdf994244b48
BLAKE2b-256 973d8af6766bc51350acd683289d811f05a9a4f9447f98a8494865eb49975c13

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp38-cp38-win_amd64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e0fdf986d09180f1a9f278a9728a53a7e9be775f913e7b514dce59341df0d28d
MD5 bdc4aed0f26919a906b5cedba4b50a10
BLAKE2b-256 2110b30b15fdd7045c65863b866e6c7f5042c77ae258022c4fc77e59a77ba673

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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

File details

Details for the file gs2compiler-1.1.4-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gs2compiler-1.1.4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df2af59794629bace31c7990addd4afad6438b72b3db35c3e9b04c73dbc70a0f
MD5 8cbb873828c86139dccd6cf2f603d1fc
BLAKE2b-256 c63fdd80cb04289d120c23325fda57d09355fd991f843f8b463df5a81f1dd617

See more details on using hashes here.

Provenance

The following attestation bundles were made for gs2compiler-1.1.4-cp38-cp38-macosx_11_0_arm64.whl:

Publisher: wheels.yml on Denveous/gs2-parser

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