Giter Club home page Giter Club logo

microscript's Introduction

MicroScript

MicroScript, often abbreviated as MUS and μs is a programming language created and developed by Cyril John Magayaga. It was originally written in Java programming language.

Examples

"Hello, World!" program

The following shows how a "Hello, World!" program is written in MicroScript programming language:

// "Hello, World!" program
console.write("Hello, World!");

Arithmetic expressions

The following shows how to the addition, substraction, multiplication, and division program using MicroScript programming language:

// Adding numbers
console.write(25 + 19);

// Subtracting numbers
console.write(36 - 14);

// Multiplying numbers
console.write(45 * 12);

// Dividing numbers
console.write(1028 / 16);

Function

The following shows how a "Hello, World!" program with function is written in MicroScript programming language:

// Function to compute the "Hello, World!" program
function main() {
    console.write("Hello, World!");
    return 0;
};

main();

The following shows how a square function is written in MicroScript programming language:

// Function to compute the square
function square(number) {
    return number * number;
}

// Main function
function main() {
    console.write(square(14));
};

main();

Copyright

Copyright (c) 2024 Cyril John Magayaga.

microscript's People

Contributors

magayaga 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.