Skip to content

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

License

Notifications You must be signed in to change notification settings

LunaAmora/Firesharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. 

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy