Giter Site home page Giter Site logo

aermoss / rsx-r Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 1.89 MB

A compiled statically typed multi paradigm general purpose programming language designed for cross platform applications.

License: MIT License

Batchfile 0.04% Python 99.81% Shell 0.06% Assembly 0.10%
compiler llvm llvmlite programming-language rsharp general-purpose multi-paradigm statically-typed cross-platform rsxr

rsx-r's Introduction

R# - RSX-R

A compiled statically typed multi paradigm general purpose programming language designed for cross platform applications.

RSX Logo

R# Logo

RSX Icon

R# Icon

Requirements

  • Python 3.10 or higher

Getting Started

How to install

Windows (Installs the RSX-R python library)

.\install.bat

Linux (Installs the RSX-R python library)

./install.sh

Examples

Hello, World!

include "rsxrio" : *;

// using namespace std;

int main() {
    std::rout("Hello, World!", std::endl());
    return 0;
}

Factorial and Fibonacci

include "rsxrio" : *;

int factorial(int n) {
    if (n == 1) return n;
    return factorial(n - 1) * n;
}

int fibonacci(int n) {
    if (n <= 1) return n;
    return fibonacci(n - 1) + fibonacci(n - 2);
}

int main() {
    int n;
    n = 5; printf("factorial(%d) = %d\n", n, factorial(n));
    n = 8; printf("fibonacci(%d) = %d\n", n, fibonacci(n));
    return 0;
}

Libraries

  • rsxrio
  • rsxrmath
  • rsxrglfw
  • rsxrgl
  • rsxr-rvr

rsx-r's People

Contributors

aermoss avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

gmh5225

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.