Giter VIP home page Giter VIP logo

ronascript's Introduction

RonaScript

RonaScript is an object oriented scripting language that's influenced by Python, C++, and Ada.

Example

class Person is
begin
    var first_name: string = "";
    var middle_name: string = "";
    var last_name: string = "";
    var age: int = 0;
    
    routine construct(var full_name: string, var age: int): void
    begin
        var name_parts: array = str_split(full_name, " ");
        this->first_name = name_parts[0];
        this->middle_name = name_parts[1];
        this->last_name = name_parts[2];
        this->age = age;
    end // routine construct
    
    routine GetNameLastFirst(): string
    begin
        return strcat(this->last_name, ", ", 
                      this->first_name,  " ", 
                      this->middle_name);
    end // routine GetNameLastFirst
    
end // class Person

Compiling RonaScript From Source

RonaScript can be built using a single build script, as it currently does not have any third-party dependencies.

./scripts/build.sh

Usage: bash build.sh <command> [options...]
  help,-h,--help            Show help.
  -t, --target <option>     Specify the build target.
      build                     Build RonaScript.
      clean                     Clean the project.
      install                   Install the project.
      rebuild                   Rebuild the entire project.

From the project directory, run the following:

bash ./scripts/build.sh --target build

Running RonaScript

Note: some options may not be available yet as this is in active development.

Usage: RonaScript <file> [options...]
  <file>              Input file (*.rn | *.rnc)
  -c                  Compile to *.rnc file
  -norun              Compile to *.rnc file without running
  -v, --version       Show version information
  -h, --help          Show help

ronascript's People

Contributors

malcolmraine avatar

Stargazers

 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.