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-3.tar.gz
(15.9 kB
view details)
Built Distribution
GammaJ-3-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file gammaj-3.tar.gz
.
File metadata
- Download URL: gammaj-3.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0824bd5ef2b9af96967bfc1b43c5155b80abda573bb86bb3a473c614fa95d60d |
|
MD5 | 870e63a27b0e5bccf07c9991dbdf3b94 |
|
BLAKE2b-256 | 440a725d61942827d80b348e3717efe379ef1a085914e9a9beab02dbd8f8cf10 |
File details
Details for the file GammaJ-3-py3-none-any.whl
.
File metadata
- Download URL: GammaJ-3-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef3cd68d10c894a1f7f55bad7e9dc9416003115c02e50f2338287605d70fcac0 |
|
MD5 | 00ed58c2ac7afe4b2d50c81df4773351 |
|
BLAKE2b-256 | 0f40768d7ede30abaef3c8b0c3f48b7b589714196e324ab1bdc6de6c50e46ea7 |