Coder Social home page Coder Social logo

cobol.run's Introduction

cobol.run

Docker Repository Build status Follow @morecobol on Twitter

Run serverless COBOL programs on OpenWhisk. Built with Trails.js and Node.

Usage

The user sends a POST request containing COBOL source code, and receives as a response the result of the execution of the program.

Example

  • Request: POST /compileAndRun
    {
      "options": {
        "dialect": "cobol2014"
      },
      "source": "identification division. program-id. hello. procedure division. display \"hello world\"."
    }
  • Response:
    {
      "code": 0,
      "output": "hello world"
    }

API

POST payload

field type description required
source String the COBOL source to compile and run yes
files Array (File) List of files required by the cobol program no
args Array (String) List of arguments to pass into the cobol program at runtime no
options Object List of custom gnucobol compiler flags no

File

The files array contains File objects.

field type description required
name String Name of the file yes
data String Contents of the file yes

options.dialect

Supported COBOL dialects

dialect description
cobol2014 Cobol 2014 Dialect
cobol2002 Cobol 2002 Dialect
cobol85 Cobol 85 Dialect
ibm IBM Dialect
mvs MVS Dialect
bs2000 BS2000 Dialect
mf MicroFocus Dialect
acu ACUCOBOL Dialect

Resources

License

MIT

Maintained By

cobol.run's People

Contributors

tjwebb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.