Code Monkey home page Code Monkey logo

samarium's Introduction

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:

"Hello, World!"!;

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. The source code can be found here.

Credits

Samarium was inspired by several languages, including brainfuck, Rust, and Python.

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, helping with design choices, and adding partial Python Interoperability

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

samarium's People

Contributors

trag1c avatar tetraxile avatar enderchief avatar qexat avatar darvil82 avatar lunarmagpie avatar celeo avatar mithicspirit avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.