Code Monkey home page Code Monkey logo

mini's Introduction

🚧 Under Construction!!! 🚧

Note that Bite is in heavy development and most of the features have not been yet implemented.

Bite

Bite (formerly mini) is a multi-paradigm dynamically typed scripting language made to be fun and easy to use and embed into other applications.

Made to be used in bite-100 fantasy console (soonβ„’) but is versatile enough that can be used in other applications as well.

Features 🀯

  • Easy to embed into c++ applications
  • Writen using very modern c++
  • Modern and clean syntax
  • Fast enough for a scripting language
  • Well documented and structured implementation

Taste of Bite πŸ•

# lines starting with # are comments

# variables are defined using "let" keyword
let awesomeness = 10; # integers
let bugs = 4.5; # floating point numbers
let review = "best language ever"; # strings
let is_bite_best_language_ever = true; # booleans
let critics = nil; # empty value

# you assign values to variables like u would expect 
awesomness = 11;

# you may change change type of variable using assigment
is_bite_best_language_ever = "of course!!!";

# you can use bite as your calculator (all math operations are here)
let amazingness = awesomness * (bugs + 10); 

# even bitwise ones
let amazingness_times_two = amazingess << 1;

# if statements are also here
if (bugs < 10) {
    bugs = 10;
} else if (bugs > 100) {
    amazingness = 10000000;
} else {
    critics = "me";
}

# while loops also checking in!
while (amazingness < 100) {
    amazingness = amazingness * 2;
}

# and of course functions also came!
fun add(a, b) {
    return a + b;
}

review = add(amazingness, awesomness);

Installation πŸ”¨

Requirements

  • very recent version of c++ compiler (gcc >= 13)
  • cmake >= 3.22

instructions

git clone https://github.com/upedd/mini.git
cd mini
cmake -S . -B build # Your bite executable is now in build directory

Usage

./bite [path to your bite file]

Acknowledgments

mini's People

Contributors

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