Skip to main content

A small lightweight language that combines Python and HTML.

Project description

A small lightweight language that combines Python and HTML. Recommended file extension: .γ/.gmaj

Example syntax:

# comment
x: int = 123 # variable
def xyz() -> None:
    ... # ellipsis (ignores the line)
    
def main() -> None:
    # to insert html, use the 'html' opening and closing tags as shown below
    <html>
        <!-- html code here -->
        <h1>
            Hello, world!
        </h1> <!-- this will open your browser to a random unused port with a 'Hello, world' heading -->
    </html>
    
    # after the closing 'html' tag, you can continue with python code
    
if __name__ == '__main__': # runs only when the file is executed directly
    main() # executes the main function

DISCLAIMER: You cannot import GammaJ files in Python files or from other GammaJ files. You can import Python from GammaJ files though.

Running a GammaJ file:

Method 1: Run using python module

python -m gammaj <filename>

Method 2: Use cmdlet

gammaj <filename>

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

gammaj-2.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

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

GammaJ-2-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file gammaj-2.tar.gz.

File metadata

  • Download URL: gammaj-2.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for gammaj-2.tar.gz
Algorithm Hash digest
SHA256 434af92a060885244f40b6d0c3d78701044f5c9fad12b94abddbf88ea00da699
MD5 010b1f175b645ee66e81d0cb8c3d66cb
BLAKE2b-256 df00120ebd8613b148cbfda1edeb7cdad22d54161ef506143f6f089a704aad9b

See more details on using hashes here.

File details

Details for the file GammaJ-2-py3-none-any.whl.

File metadata

  • Download URL: GammaJ-2-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for GammaJ-2-py3-none-any.whl
Algorithm Hash digest
SHA256 afa17a1193dcd19010beeb2fe2a746e86cf500ac9d62fa3ada27731b189c6d26
MD5 63de99521ef4e80d03966f94b9f8e9be
BLAKE2b-256 e1d96f13ae0be78f93b1e068eb989f9a17facbc2143c6b3abad86b7360519aaa

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