Skip to content

Commit

Permalink
add wandbox-erlc and update README (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix authored Nov 15, 2021
1 parent 3cfb797 commit 14a54ae
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 11 deletions.
80 changes: 73 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
[Wandbox](http://melpon.org/wandbox/) is a social compilation service.
This project is a Pythonic binding to the Wandbox API, and CLI command.

* related
* [wandbox-builder](https://github.com/melpon/wandbox-builder)
* [Wandbox Status](https://srz-zumix.github.io/wandbox-status/)
* [Wandbox News](https://github.com/srz-zumix/wandbox-news/)

## Installation

> pip install wandbox-api
Expand Down Expand Up @@ -84,6 +89,8 @@ Source files required for runtime are automatically added to the file list.
#### Bash Example
> wandbox-bash run sample.sh
[Bash Example](./samples/command/src/bash)
----
Expand All @@ -101,6 +108,9 @@ Include files required for compilation are automatically added to the file list.
#### C Example
> wandbox-gcc run sample.c test.c
> CXX="wandbox-gcc run" make
[C Example](./samples/command/src/cc)
----
Expand All @@ -112,6 +122,8 @@ Include files required for compilation are automatically added to the file list.
#### C# Example
> wandbox-cs run sample.cs test.cs
[C# Example](./samples/command/src/csharp)
----
Expand Down Expand Up @@ -179,9 +191,8 @@ optional arguments:

#### C++ Example

> wandbox-cxx -c gcc-head run main.cpp -DWANDBOX
> CXX="wandbox-gcc run" make
> wandbox-cxx -c gcc-head run main.cpp -DWANDBOX
> CXX="wandbox-g++ run" make
[C++ Example](./samples/command/src/cxx)

Expand All @@ -196,6 +207,8 @@ Include files are automatically added to the file list.

#### CMake Example

> wandbox-cmake run sample.cmake
[CMake Example](./samples/command/src/cmake)

----
Expand All @@ -207,6 +220,8 @@ Include files are automatically added to the file list.

#### CoffeeScript Example

> wandbox-coffee run sample.coffee
[CoffeeScript Example](./samples/command/src/coffee)

----
Expand All @@ -224,6 +239,8 @@ Include files required for compilation are automatically added to the file list.

#### CPP Example

> wandbox-clang-PP run -CC -nostdinc -E -P sample.cpp test.cpp
[CPP Example](./samples/command/src/cpp)

----
Expand All @@ -237,6 +254,8 @@ Import modules required for compilation are automatically added to the file list

#### Crystal Example

> wandbox-crystal run sample.cr
[Crystal Example](./samples/command/src/crystal)

----
Expand All @@ -253,6 +272,9 @@ Import modules required for compilation are automatically added to the file list

#### D Example

> wandbox-dmd run sample.d test2.d packages/test.d
> wandbox-dub run
[D Example](./samples/command/src/dmd)
[Dub Example](./samples/command/src/dub)

Expand All @@ -266,17 +288,22 @@ Import modules required for compilation are automatically added to the file list

#### Elixir Example

> wandbox-elixir run sample.exs
> wandbox-mix run test
[Elixir Example](./samples/command/src/elixir)

----

### Erlang

* wandbox-erlang
* wandbox-erlc
(wandbox -l Erlang)

#### Erlang Example

> wandbox-erlc run prog.erl
[Erlang Example](./samples/command/src/erlang)

----
Expand All @@ -288,6 +315,8 @@ Import modules required for compilation are automatically added to the file list

#### F# Example

> wandbox-fsharpc run test1.fs sample.fs
[F# Example](./samples/command/src/fsharp)

----
Expand All @@ -299,6 +328,8 @@ Import modules required for compilation are automatically added to the file list

#### Go Example

> wandbox-go run sample.go
[Go Example](./samples/command/src/go)

----
Expand All @@ -310,6 +341,8 @@ Import modules required for compilation are automatically added to the file list

#### Groovy Example

> wandbox-groovy run -cp . sample.groovy
[Groovy Example](./samples/command/src/groovy)

----
Expand All @@ -324,6 +357,9 @@ Note: wandbox-ghc/wandbox-stack add -dynamic compiler option. (output file size

#### Haskell Example

> wandbox-ghc run sample.hs
> wandbox-stack run
[Haskell Example](./samples/command/src/haskell)

[Haskell Stack Example](./samples/command/src/haskell-stack)
Expand All @@ -337,6 +373,8 @@ Note: wandbox-ghc/wandbox-stack add -dynamic compiler option. (output file size

#### Java Example

> wandbox-java run sample.java test.java
[Java Example](./samples/command/src/java)

----
Expand All @@ -354,6 +392,8 @@ Import files/modules required for runtime are automatically added to the file li

#### JavaScript Example

> wandbox-node run --experimental-modules sample.js
[JavaScript Example](./samples/command/src/js)

----
Expand All @@ -365,6 +405,8 @@ Import files/modules required for runtime are automatically added to the file li

#### Julia Example

> wandbox-julia run sample.jl
[Julia Example](./samples/command/src/julia)

----
Expand All @@ -376,6 +418,8 @@ Import files/modules required for runtime are automatically added to the file li

#### Lazy K Example

> wandbox-lazyk run sample.lazy
[Lazy K Example](./samples/command/src/lazyk)

----
Expand All @@ -389,6 +433,8 @@ Import files/modules required for runtime are automatically added to the file li

#### Lisp Example

> wandbox-sbcl run sample.lisp
[Lisp Example](./samples/command/src/lisp)

----
Expand All @@ -404,19 +450,23 @@ Import files/modules required for compilation are automatically added to the fil

#### Lua Example

> wandbox-lua run sample.lua
[Lua Example](./samples/command/src/lua)

----

### Nim

Import modules required for compilation are automatically added to the file list.
Import modules/.c required for compilation are automatically added to the file list.

* wandbox-nim
(wandbox -l Nim)

#### Nim Example

> wandbox-nim run sample.nim
[Nim Example](./samples/command/src/nim)

----
Expand All @@ -428,6 +478,8 @@ Import modules required for compilation are automatically added to the file list

#### OCaml Example

> wandbox-ocamlopt run sample.ml
[OCaml Example](./samples/command/src/ocaml)

----
Expand All @@ -440,8 +492,7 @@ Even just having wandbox would be enough.

#### OpenSSL Example

> wandbox-ssl genrsa -out test.key 2048
> wandbox-ssl genrsa -out test.key 2048
> wandbox-ssl rsa -in test.key -pubout -out test.key.pub
[OpenSSL Example](./samples/command/src/openssl)
Expand All @@ -457,6 +508,8 @@ Include files required for runtime are automatically added to the file list.

#### Pascal Example

> wandbox-fpc run sample.pas
[Pascal Example](./samples/command/src/pascal)

----
Expand All @@ -470,6 +523,8 @@ Require files/modules required for runtime are automatically added to the file l

#### Perl Example

> wandbox-perl run sample.pl
[Perl Example](./samples/command/src/perl)

----
Expand All @@ -483,6 +538,8 @@ Require/Include files required for runtime are automatically added to the file l

#### PHP Example

> wandbox-php run sample.php
[PHP Example](./samples/command/src/php)

----
Expand Down Expand Up @@ -542,6 +599,8 @@ Source files are automatically added to the file list.

#### R Example

> wandbox-rscript run sample.R
[R Example](./samples/command/src/r)

----
Expand All @@ -553,6 +612,8 @@ Source files are automatically added to the file list.

#### Rill Example

> wandbox-rillc run sample.rill
[Rill Example](./samples/command/src/rill)

----
Expand Down Expand Up @@ -584,6 +645,7 @@ Module files required for runtime are automatically added to the file list.

#### Rust Example

> wandbox-rustc run sample.rs
> wandbox-cargo run
[Rust Example](./samples/command/src/rust)
Expand Down Expand Up @@ -640,6 +702,8 @@ Import files/modules required for compilation are automatically added to the fil

#### TypeScript Example

> wandbox-tsc run --module es2015 sample.ts
[TypeScript Example](./samples/command/src/ts)

----
Expand All @@ -651,6 +715,8 @@ Import files/modules required for compilation are automatically added to the fil

#### Vim script Example

> wandbox-vim run -X -N -u NONE -i NONE -V1 -e -s -S sample.vim +qall!
[Vim script Example](./samples/command/src/vim)

----
Expand Down
4 changes: 1 addition & 3 deletions samples/command/src/dmd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ local:

wandbox:
make -C . local --no-print-directory DMD="wandbox-dmd run"
# collect2: fatal error: ld terminated with signal 25 [File size limit exceeded], core dumped
# compilation terminated.
# make -C . local --no-print-directory DMD="wandbox-gdmd run"
make -C . local --no-print-directory DMD="wandbox-gdmd run"
make -C . local --no-print-directory DMD="wandbox-ldmd2 run"

clean:
Expand Down
2 changes: 1 addition & 1 deletion samples/command/src/erlang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ local:
#erl -noshell -s sample main -s init stop

wandbox:
make -C . local --no-print-directory EALANG="wandbox-erlang run"
make -C . local --no-print-directory EALANG="wandbox-erlc run"
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
'wandbox-dub = wandbox.__dub__:main',
'wandbox-elixir = wandbox.__elixir__:main',
'wandbox-mix = wandbox.__elixir__:mix',
'wandbox-erlc = wandbox.__erlang__:main',
'wandbox-erlang = wandbox.__erlang__:main',
'wandbox-fsharpc = wandbox.__fsharp__:main',
'wandbox-ghc = wandbox.__ghc__:main',
Expand Down

0 comments on commit 14a54ae

Please sign in to comment.