Skip to content

I am developing a language , so this is my working place. The language's name is 'SIMPLE'

License

Notifications You must be signed in to change notification settings

Muhammad-Salman-Sheikh/Language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIMPLE

SIMPLE is a basic programming langauge designed for golfing purposes.


Install

Make sure to have node installed. If you don't, head over to nodejs.org and follow the installation instructions. Also make sure to have git installed. Then run the following commands:

git clone https://github.com/Muhammad-Salman-Sheikh/Language/
cd Language
node code.js

Syntax

The syntax of the language is as follows:

  • Compute expressions like usual, i.e 2 + 1, 5 % 2 etc..

  • Supports addition, subtraction, multiplication, division, modulo (%), parenthesis.

  • Supports variables, to declare one simply type the variable's name, an equals sign and the number you want to assign it to. ( x = 12 ) will declare a variable x with a value of 12.

  • Functions are declared with Func nameOfFunc arg1 arg2 => ( return what ever ), e.g Func double x => x * 2 will make a function double that has an argument x and returns the results of the expression x * 2. Entering the expression double 3 will expand to 6.


Quirks

  • An empty program will display FizBuzz program and exits with an error.
  • A program containing any operator but no numbers will display Hello World! and exit with an error
  • A program consisting of any alphabets will output the 12 days of Chrismats and exit with an error

Roadmap

  • Input/Output
  • Advanced logic flow (ternary operator, if/else/elif)
  • Improved functions
  • Loops

About

I am developing a language , so this is my working place. The language's name is 'SIMPLE'

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published