dopple

Dopple is compiler that generates C or LLVM from JavaScript code.

Usage no npm install needed!

<script type="module">
  import dopple from 'https://cdn.skypack.dev/dopple';
</script>

README

Dopple 0.0.2-17-alpha

Dopple is compiler that generates C or LLVM from JavaScript code.

1. Installation

Install package from npm:

npm install dopple -g

This will install dopple globally so that it may be run from the command line.

Windows

Dopple requires GCC compiler to be installed: TDM-GCC

Mac

Dopple requires Xcode or GCC compiler to be installed.

2. Usage

After compilation in your root directory will be added executable and dopple folder that contains all generated C source files.

Global

dopple [source] [target-path]

Local

node bin/dopple [source] [target-path]

Arguments

[source] - JavaScript source file or code

[target-path] - Path for executable, this defaults to ./app (or ./app.exe on windows)

3. Example

From source file

dopple ./source.js

Feed code manually

dopple "var x = 'Hello World!'; alert(x);"

4. License

Dopple is released under the Mozilla Public License v2.0 MPL 2.0

5. Links