Code Monkey home page Code Monkey logo

moeda's Introduction

Moeda Build Status codecov.io

Another functional programming language

Getting Started

Moeda is an attempt to create a programming language, with a syntax similar to LISP.

Prerequisites

Install Rust

curl https://sh.rustup.rs -sSf | sh

Installing

Fork this project

git clone [email protected]:marioidival/moeda.git
cd moeda/

And run it with cargo

cargo run

Running the tests

cargo test

What moeda can do?

Today, only work as REPL

* Arithmetic: +, -, *, /, rem, inc, dec
* Comparison: =, /=, <. >, <=, =>, max, min
* Logical: not, and, or
* StdOut: print
* Conditional: If, When
* Primitives: Int, Str, Bool, List
* Variables: def
* Functions: defn

Built With

  • Rust - a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

  • Moeda has inspiration from Rascal
  • The name 'moeda' came from my incredible lack of imagination to name things. When I created the repository and thought of a name, I used the first thing I saw in front of me, some coins ('moeda' in portuguese) on my desk.

moeda's People

Contributors

marioidival avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

huijari

moeda's Issues

Improvements on REPL

Today, REPL is an input, waiting a string... Something better than it should be implemented...

Implement loop

  • loop
  • while, traditional while
  • foreach, iterate over elements

If you can implement just one, send a PR πŸ’Ÿ

Read files with Moeda code

As user, I want write files with .moeda extension and execute them with success.

Ideas:

  • .troco
  • .coins
  • .moeda
  • .golpes
  • .cents

Implement Bitwise Operations

  • (bit-and x y), Rust Trait: BitAnd
  • (bit-or x y), Rust Trait: BitOr
  • (bit-xor x y), Rust Trait: BitXor
  • (bit-shift-left x y), Rust Trait: Shl
  • (bit-shift-right x y), Rust Trait: Shr

If you can implement just one, send a PR πŸ’Ÿ

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.