Giter Site home page Giter Site logo

lunaamora / firesharp Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 303 KB

Firesharp is compiler for Firelang, an Concatenative Stack-oriented programming language that compiles to WASM.

License: MIT License

C# 100.00%
concatenative-programming-language stack-based wasm webassembly language programming-language

firesharp's Introduction

Firesharp

Firesharp is compiler for Firelang, an Concatenative Stack-oriented programming language that compiles to WASM.

All thanks to Tsoding, as this project is Heavily inspired by Porth.

Quickstart

You will need to have the following:

Then, you can compile the test.fire file with:

$ dotnet publish
$ ./Firesharp -com src/test.fire -r
... program logs ...
number is less than 0
number is 0
number is 1 or more than 7 and not nice
number is between 2 and 6
number is between 2 and 6
number is between 2 and 6
number is 7
number is nice
number is nice
number is 1 or more than 7 and not nice

Running options and commands

$ Firesharp [options]
$ Firesharp [command] [...]

OPTIONS:
  -h|--help         Shows help text. 
  --version         Shows version information. 
COMMANDS:
    -com <inputfile> [options] Compile a `.fire` file to WebAssembly.
        -r|--run          Run the `.wasm` file with a runtime.
        -d|--debug        Add OpTypes information to output `.wat` file.
        -w|--wat          Decompile the `.wasm` file back into the `.wat`.
        -s|--silent       Don't print any info about compilation phases.
        -g|--graph        Generate a `.svg` call graph of the compiled program. (Needs Graphviz)
        -p|--opt          Optimize the `.wasm` file to reduce it's size. (Needs Binaryen)
        -t|--runtime      Sets the runtime to be used by the `-r` option. Default: "wasmtime".
        -h|--help         Shows help text. 

firesharp's People

Contributors

lunaamora avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.