Giter VIP home page Giter VIP logo

strath's Introduction

Strath - The String Math Language

What is it?

Strath is an esolang that has a cryptic syntax and allows you to do math with strings, add them, multiply them, and even multiply with floats!

Rust developers hate it, Python developers fear it, and C developers make it blink.

How to Strath

Comments

; all text after a semicolon will be treated as a comment
&& all text after a double and will be treated as a comment
]][[ an inline comment, all text between the double square brackets will be treated as a comment
``´´ this makes a multiline comment

If, else if/elif, else

¿??/condition\? | () - if
?>/condition\? | () - elif/else if
\>?/condition\? | () - else

After ?? and ?> either a $ or to declare if all conditions are to be true or false respectivly
Two variables will be compared by an if statment without "==" eg ¿??$/1 1\? | () compares if 1 == 1 and if that result needs to be true to run the code in between the two round brackets

Variable Types

}}type{{ uses the standard types like int, str, float, etc

Certain types have short declarations
ö declares ints
Ö declares floats
ä declares char
Ä declares string
ü declares list
Ü declares dict

wavey brackets aren't needed in this case

Working With Variables

Variables are declared by defining the type, the name, and the value (optional) eg:
}}int{{ i < 1;

}int{ i < 1; A single wavy bracket allows the type of the var to change dynamicly

Special behaviour:
j > i will copy i to j and drops i
j < i will copy i to j and maintain i

In-build functions

<= will output a value
=> takes an input and sets the next variable to it as the input

Code

¡! are statments ¿? are expression

strath's People

Contributors

piturnah avatar schrottkatze avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

piturnah

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.