chathhorn / structured-text

Tools for the IEC 61131-3 language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

structured-text

Tools for the IEC 61131-3 structured text (ST) language. See: https://en.wikipedia.org/wiki/IEC_61131-3.

Build and install (on Ubuntu 20.04)

  1. Install the haskell-stack package:

    $ sudo apt install haskell-stack
  2. Clone this repo:

    $ git clone git@code.ornl.gov:defcon-scada/structured-text.git
  3. Enter the repo:

    $ cd structured-text
  4. Build and install:

    $ stack install

    This step will take a while the first time, as it'll install Haskell and all the build dependencies as well.

  5. Add stack's default executable deployment directory to $PATH:

    $ export PATH=$HOME/.local/bin:$PATH

    Also consider adding this to ~/.bashrc.

Testing

To run the unit tests:

$ stack test

Usage

The stack install command should build the executable stxt. For usage info:

$ stxt --help

About

Tools for the IEC 61131-3 language.


Languages

Language:Haskell 94.9%Language:Python 3.8%Language:Smalltalk 1.3%