Make readme prettier
This commit is contained in:
parent
139ec7b012
commit
36bd4d33c3
1 changed files with 27 additions and 63 deletions
90
README.md
90
README.md
|
@ -10,11 +10,7 @@ Sandboxed code execution discord bot.
|
||||||
>```lang
|
>```lang
|
||||||
code
|
code
|
||||||
```
|
```
|
||||||
````
|
|
||||||
|
|
||||||
With options:
|
|
||||||
|
|
||||||
````
|
|
||||||
>options```lang
|
>options```lang
|
||||||
code
|
code
|
||||||
```
|
```
|
||||||
|
@ -24,24 +20,22 @@ code
|
||||||
|
|
||||||
```
|
```
|
||||||
>`lang code`
|
>`lang code`
|
||||||
```
|
|
||||||
|
|
||||||
With options:
|
|
||||||
|
|
||||||
````
|
|
||||||
>options`lang code`
|
>options`lang code`
|
||||||
````
|
```
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
|
|
||||||
````
|
````
|
||||||
>```hs
|
>```cpp
|
||||||
main :: IO ()
|
#include <iostream>
|
||||||
main = print 1
|
|
||||||
```
|
int main()
|
||||||
````
|
{
|
||||||
|
std::cout << "Hello World!" << std::endl;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
````
|
|
||||||
>harmony```js
|
>harmony```js
|
||||||
class Foo {
|
class Foo {
|
||||||
bar = 1;
|
bar = 1;
|
||||||
|
@ -49,58 +43,28 @@ class Foo {
|
||||||
|
|
||||||
console.log(new Foo().bar);
|
console.log(new Foo().bar);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
>`py print('hello world')`
|
||||||
|
|
||||||
|
>e`hs (+) <$> Just 1 <*> Just 2`
|
||||||
````
|
````
|
||||||
|
|
||||||
```
|
## Supported Languages and Options
|
||||||
>`py print('hello world')`
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
One of the following language codes is set in `lang`.
|
||||||
>e`hs (+) <$> Just 1 <*> Just 2`
|
Options are optionally set in `options`, which is a semicolon-delimited list of `flag` or `flag=value`.
|
||||||
```
|
|
||||||
|
|
||||||
## Supported Languages
|
|
||||||
|
|
||||||
One of the following languages is set in `lang`.
|
|
||||||
|
|
||||||
- `js` JavaScript (Node 11.11.0)
|
|
||||||
- `py` Python (CPython 3.7.2, CPython 2.7.16)
|
|
||||||
- `hs` Haskell (GHC 8.6.3)
|
|
||||||
- `pas` Pascal (FPC 3.0.4)
|
|
||||||
- `go` Go (Go 1.12)
|
|
||||||
- `fs` F# (FSharp 4.5)
|
|
||||||
- `c` C (GCC 8.2.0)
|
- `c` C (GCC 8.2.0)
|
||||||
- `cpp` C++ (G++ 8.2.0)
|
- `cpp` C++ (G++ 8.2.0)
|
||||||
- `cs` C# (Mono 5.18.0)
|
- `cs` C# (Mono 5.18.0)
|
||||||
|
- `e` evaluates a single expression instead of a module
|
||||||
## Options
|
- `fs` F# (FSharp 4.5)
|
||||||
|
- `go` Go (Go 1.12)
|
||||||
Options are optionally set in `options`, which is a semicolon-delimited list of `flag` or `flag=value`.
|
- `hs` Haskell (GHC 8.6.3)
|
||||||
|
- `e` evaluates a single expression instead of a module
|
||||||
For JavaScript:
|
- `js` JavaScript (Node 11.11.0)
|
||||||
- `harmony` enables harmony features (`--harmony` on node)
|
- `harmony` enables harmony features (`--harmony` on node)
|
||||||
- `e` prints the result of evaluating the code
|
- `e` prints the result of evaluating the code
|
||||||
|
- `pas` Pascal (FPC 3.0.4)
|
||||||
For Python:
|
- `py` Python (CPython 3.7.2, CPython 2.7.16)
|
||||||
- `2` runs Python 2 instead of Python 3
|
- `2` runs Python 2 instead of Python 3
|
||||||
|
|
||||||
For Haskell:
|
|
||||||
- `e` evaluates a single expression instead of a module
|
|
||||||
|
|
||||||
For Pascal:
|
|
||||||
- None
|
|
||||||
|
|
||||||
For Go:
|
|
||||||
- None
|
|
||||||
|
|
||||||
For F#:
|
|
||||||
- None
|
|
||||||
|
|
||||||
For C:
|
|
||||||
- None
|
|
||||||
|
|
||||||
For C++:
|
|
||||||
- None
|
|
||||||
|
|
||||||
For C#:
|
|
||||||
- `e` evaluates a single expression instead of a module
|
|
||||||
|
|
Loading…
Reference in a new issue