SapphireScript - A new language to make RMMV plugins!

Discussion in 'Khas Scripts' started by Khas, May 13, 2017.

    Tags:
  1. Khas

    Khas Detective lv73 Veteran

    Messages:
    282
    Likes Received:
    363
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    [​IMG]

    Introduction
    SapphireScript is a new scripting language to make RPG Maker MV plugins. It's readable and easy to use, it helps on keeping your codebase organized, and it compiles to javascript using RPG Maker MV conventions. Here's a video where you can see it in action!



    How to use
    Make sure to watch the installation video and read the User Guide pdf included with the download. In addition, read carefully the ss_guide.ss and study the files in the Example folder.


    How to install
    There are instructions on how to install SapphireScript on the User Guide pdf, but I recommend to watch the video below:



    Download
    Before downloading, please understand that SapphireScript is an experiment. It's stable enough and I use it to create all my plugins, but I don't know how people will use it, so you may have some difficulties if you are a beginner in RPG Maker scripting. Anyhow, let me know what you think of it below!

    The latest version can be downloaded from my blog.
     
    #1
  2. nio kasgami

    nio kasgami VampCat Veteran

    Messages:
    8,570
    Likes Received:
    2,333
    Location:
    Canada / Quebec
    First Language:
    French
    @Khas Oh my I love it! I love I love it!
    I would like although if it's possible to add some C# Like features as namespace keyword.
    I dunno if you know Typescript but it's a Superset of javascript who simplify sometime a lots of jobs!

    and I would like to know if you will implement the private, protected, public keywoard? and optionnal typing :)?

    if you want I can also test if it's could work with Gulp and etc :)
    sorry I ask a lots I am just curious hahahah
     
    #2
    Khas likes this.
  3. Khas

    Khas Detective lv73 Veteran

    Messages:
    282
    Likes Received:
    363
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    @nio kasgami thanks! I have designed it to be as close to Ruby as possible, without compromising any js features. And before making this I searched a lot of languages that compile to javascript (actually I got the idea from them haha), but I was afraid of running into problems because of the MV engine's conventions.

    Right now the compiler goes line by line checking matches (via regex) for valid expressions. It does not convert each statement separately into a command, so implementing namespaces, typing, private/protected/public access is a bit hard and may not worth it (I'd say most of plugins are simple and wouldn't benefit from this, as the engine itself is simple too). But I appreciate the suggestions! I'll be thinking of ways to improve and make it even better :D
     
    #3
    nio kasgami likes this.

Share This Page