Skip to main content

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


Download files

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

Source Distribution

samarium-0.2.0a4.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

samarium-0.2.0a4-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file samarium-0.2.0a4.tar.gz.

File metadata

  • Download URL: samarium-0.2.0a4.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.2 Linux/5.16.8-arch1-1

File hashes

Hashes for samarium-0.2.0a4.tar.gz
Algorithm Hash digest
SHA256 2730a0f3ff7ad8d0b88d03bd30b5c30947f386f7f6cd32e93c84765fe952ef10
MD5 5fe193325abd4086bbe7904d22a39db2
BLAKE2b-256 b9d3d59a9a940315af6c27c84438279da70fcefc4087e3626d432c0677c121dc

See more details on using hashes here.

File details

Details for the file samarium-0.2.0a4-py3-none-any.whl.

File metadata

  • Download URL: samarium-0.2.0a4-py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.2 Linux/5.16.8-arch1-1

File hashes

Hashes for samarium-0.2.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 92d4c77f0333f77564f2d0d384db8dd476bc73bf2a7141df18dd189c4d2031a0
MD5 2253db64b041c75b55897cfd2d151b8c
BLAKE2b-256 30bc2e6819d63d6eed607130f2ad7d5341f684f6520e94929e79e8a03efd29ca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page