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: Use -g parameter
python -m -g <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-1.tar.gz
(15.3 kB
view details)
Built Distribution
GammaJ-1-py3-none-any.whl
(15.1 kB
view details)
File details
Details for the file gammaj-1.tar.gz
.
File metadata
- Download URL: gammaj-1.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31744e7c3ec62f7d4cd0ef7c52157680389acb5709a6d9459af5a41be365eae8 |
|
MD5 | b63e7263670f44aa7bb6c095f001909f |
|
BLAKE2b-256 | 8f7eaa92b53e9863017eb0d7df1f40aacd7857ac593acf0825dc0d62910eced3 |
File details
Details for the file GammaJ-1-py3-none-any.whl
.
File metadata
- Download URL: GammaJ-1-py3-none-any.whl
- Upload date:
- Size: 15.1 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 | 5c8f3323496fc743fde27860c26c5b177a8ea174b422e2e2627ee0f8832d8a1e |
|
MD5 | 6df584b80d91c0ef1fe08523d92bf5a0 |
|
BLAKE2b-256 | d3f8622aa5bbd17122cb68fa77f4ef7a5ed0f793ac47b6314927c343d1f6c482 |