Skip to main content

The Samarium Programming Language

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.0b1.tar.gz (29.3 kB view details)

Uploaded Source

Built Distribution

samarium-0.2.0b1-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: samarium-0.2.0b1.tar.gz
  • Upload date:
  • Size: 29.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.4 Linux/5.17.3-arch1-1

File hashes

Hashes for samarium-0.2.0b1.tar.gz
Algorithm Hash digest
SHA256 ce86131d0e8925e350508640186df72feb86e49dd237d7b0d231510b7e5981a9
MD5 30cbd4346a99c3ec2e7721ef5acdc310
BLAKE2b-256 336c7658f34a69c25722f1fc48b69543bfd55dbf089539e81d79f18b1bd28d03

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for samarium-0.2.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4ab20c182fdc2f330bd8b43b633f4c6f943219554e52062cb1fab5e94106c23
MD5 52bbd1c73046d387ee1ad3f34b24f8b2
BLAKE2b-256 6a3e9a232718bb03de0b9e6dfec5dc85f2b75a320d388503f92f66f99440bc11

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