Coder Social home page Coder Social logo

aslooj's Introduction

Aslooj Programming Language

Aslooj is an emojis programming language. It contains some commands that can be written and given parameters. I wrote this project a long time ago, but today I added a function command to it and thought about uploading it to GitHub. This project is just for fun.

Installation

The program only works fully on Windows. The color change command only works on Windows

aslooj myFile.as

Coding

  • Print To Console

    For Printing any thing, use lollipop emoji 🍭 :

🍭 <Hello World !!>
🍭 <I am>, 16, <years old>

String writted inside <>, numbers writted normally.

  • Define a Variable

    Defining variables is done using the alien emoji πŸ‘½, then the variable name, then its value. This syntax is always constant

πŸ‘½ i 0
πŸ‘½ name <mohammed>
  • Take an Input

    We can take input from the user through the console, and store it in a variable, using the crying emoji 😭. You write the emoji, then the name of the variable you want to store in, then the text that will appear to the user.

😭 name <What is Your Name ?>
😭 age <How old are you?>
🍭 <Hi>, name, <, You are>, age, <year old>    # print inputs
  • Performing Calculations on Variables

    You can define a variable with the alien emoji as we explained previously, and then perform a mathematical operation on it, With smiling cat emoji 😼, such as: + , - / , * .

πŸ‘½ i 2
😼 i + 1
😼 i * 5

There must be a space between the emoji, the variable name, the mathematical sign, and the number

  • Sleeping

You can use the sleeping emoji 😴 to pause the program for a few seconds.

😴 5
  • Exit

    Use the monster emoji πŸ‘Ή to stop the program permanently.

πŸ‘Ή
  • Changing Color

    This command works on Windows systems only. It is used to change the color of text in the console, using the happy cat emoji 😺. The available colors are: ⚫️ πŸ”΄ 🟑 🟒 πŸ”΅ 🟣 βšͺ️.

😺 🟑
  • Define and Call Functions

    We can collect some lines of code inside a function, and then call them with the robot’s emoji πŸ€–. To define the function, you write the emoji, then the name of the function, then :, and the lines belonging to the function are after an indent space (Tab).

πŸ€– askUser :
	😭 NAME <What is Your Name ? >   # take input
	🍭 <Hello>,NAME,<Chan !!>        # print text

Note: Any text written after # is considered a comment and does not affect the code.

Now the function is defined with the name askUser. To call it, we use the same emoji and then the name of the function only, without :.

πŸ€– askUser

The function will simply run

aslooj's People

Contributors

mohdmot avatar

Stargazers

 avatar KAGSA avatar  avatar

Watchers

 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.