GithubHelp home page GithubHelp logo

mludevid / minprol Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 25 KB

Minprol (Minimalistic Programming Language) is an interpreted programming language. The interpreter is wirtten in Rust.

Rust 100.00%

minprol's Introduction

MINPROL

Minprol (Minimalistic Programming Language) is an interpreted programming language with the goal of being as minimalistic as possible without losing any functionallity. We'll see how that goes.

A documentation of the language is not planned until it has reached a more mature status.

At the moment it is a simple math expressions solver with functionallity for variables, blocks, functions and it starts to have support for booleans and if-else-statements. It can handle +, -, *, / and () for I32 (1), I64 (1l), F32 (1.0), F64 (1.0d), U32 (1u) and U64 (1ul) without mixing them.

To run it you'll need the Rust compiler. You can start the interpreter by running cargo run.

Next steps:

  • Work in progress: Write test functions for everything.
  • Improve end of line handling to later be able to accept instructions over multiple lines in files.
  • If Else
  • Loops
  • Reform data types and add new ones like Arrays.
  • Improve error handeling

Little improvements:

  • Try to move asigning values into math_value to be able to delete process_expression
  • Improve efficiency of blocks
  • Check that function inputs are Identifiers on declaration so it panickes then instead of when calling the funciton.

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.