Skip to content

Lunarmagpie/Samarium

 
 

Repository files navigation

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:

Documentation on how to program in Samarium can be found here.

Installation

pip install samarium

git clone https://aur.archlinux.org/samarium.git; cd samarium; makepkg -sirc or use your favorite AUR helper.

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.

Short Long Description
-c <cmd> --command <cmd> Can be used to execute Samarium code from the string cmd,
directly in the terminal. cmd can be one or more statements
separated by semicolons as usual. Note that the last statement
of cmd will be printed if it does not end in a semicolon.
-h --help Shows the help message
-v --version Prints Samarium version

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, Python and Java.

Special thanks to:

  • tetraxile for helping with design choices and writing the docs
  • MithicSpirit for making an AUR package for Samarium
  • DarviL82 for fixing some issues
  • Endercheif for making the documentation look fancy and helping with design choices

If you have any questions, or would like to get in touch, join the Discord server!

About

The Samarium Programming Language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%