Skip to content

A command line application that reads code as a json payload from stdin, compiles and runs the code, and writes the result as json to stdout.

License

Notifications You must be signed in to change notification settings

ToolKitHub/rce-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rce-runner

A command line application that reads code as a json payload from stdin, compiles and runs the code, and writes the result as json to stdout.

Used by rce-images to run code.

Payload Format

Input:

{
  "language": "python",
  "files": [
    {
      "name": "main.py",
      "content": "print('Hello, world!')"
    }
  ]
}

Output:

{
  "stdout": "Hello, world!\n",
  "stderr": "",
  "error": ""
}

Supported Programming Languages

Language File Extension
Assembly .asm
Ats .dats
Bash .sh
C .c
Clisp .lisp
Clojure .clj
Cobol .cob
CoffeeScript .coffee
Cpp (C++) .cpp
Crystal .cr
Csharp (C#) .cs
D .d
Dart .dart
Elixir .ex
Elm .elm
Erlang .erl
Fsharp (F#) .fs
Go .go
Groovy .groovy
Guile .scm
Hare .ha
Haskell .hs
Idris .idr
Java .java
JavaScript .js
Julia .jl
Kotlin .kt
Lua .lua
Mercury .m
Nim .nim
Nix .nix
Ocaml .ml
Pascal .pas
Perl .pl
Php .php
Python .py
Raku .raku
Ruby .rb
Rust .rs
SaC .c
Scala .scala
Swift .swift
TypeScript .ts
Zig .zig

Tip

Can't find your preferred programming language? Open an issue to request support.

License

This project is licensed under the MIT License.

About

A command line application that reads code as a json payload from stdin, compiles and runs the code, and writes the result as json to stdout.

Topics

Resources

License

Stars

Watchers

Forks