A dynamic, interpreted language transpiled to Python
Project description
Samarium
Samarium is a dynamic interpreted language transpiled to Python. Samarium, in its most basic form, doesn't use any digits or letters.
Here's a Hello, World!
program written in Samarium:
Note: Every statement in Samarium must end in a semicolon, and backticks will be ignored.
Documentation on how to program in Samarium can be found here.
Installation
pip
pip install samarium
AUR
yay -S samarium
Using Samarium
You can run Samarium programs with samarium program.sm
.
samarium-debug
may be used instead, which will first print out the intermediary Python code that the Samarium program is transpiled into, before executing it.
The -c <command>
option can be used to execute Samarium code from the string command
, directly in the terminal.
command
can be one or more statements separated by semicolons as usual.
Note that the last statement of command
will be printed if it does not end in a semicolon.
There is also a VSCode syntax highlighting extension for Samarium, which can be found here here. The source code can be found here.
Credits
Samarium was inspired by several languages, including brainfuck, Rust, Java and Python. Thanks to tetraxile for helping with design choices and writing the docs, MithicSpirit for making Samarium an AUR package, and DarviL82 for fixing some issues.
If you have any questions, or would like to get in touch, join the Discord server!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file samarium-0.2.0b0.tar.gz
.
File metadata
- Download URL: samarium-0.2.0b0.tar.gz
- Upload date:
- Size: 28.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.3 Linux/5.16.15-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7deae219a499ecbd218ab70dc9e41764044b77f4968125ede3edb5188da8a643 |
|
MD5 | b7dc92ce0900366464cf2f8a4bc4b23f |
|
BLAKE2b-256 | d6cf89c7fa7fb2316425c1d8470137a78b0b532cb4cdd13358c42b6113b6a9d1 |
File details
Details for the file samarium-0.2.0b0-py3-none-any.whl
.
File metadata
- Download URL: samarium-0.2.0b0-py3-none-any.whl
- Upload date:
- Size: 32.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.3 Linux/5.16.15-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 718db789ad17cc9b674f3eda57cb13d449dc5af8ce40e892fe2162e551329578 |
|
MD5 | 385cfecc6f12c37695d36803cc332d86 |
|
BLAKE2b-256 | 6421169c143cc91066b92605f2e149266dad5214120cd97c4f355d3c99cc4a14 |