Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

SLANG engine written in Go

License

NotificationsYou must be signed in to change notification settings

Bitspark/slang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCIcodecov

Slang Daemon

Powered byBitspark

About Slang

Slang is a visual flow-based programming language and programming system. It consists of the YAML-based Slang exchange format, theSlang daemon and theSlang UI.

About Slang daemon

Slang daemon is the service which serves the user web interface (Slang UI) and runs all your operators.You don't need anything else to start working with Slang, so this here is the place to start.

How to install

If you want to run Slang, you can simply download thelatest release, unpack and run it. We have binaries for Windows, Linux and MacOS.

Compile it yourself

If you rather want to compile it yourself, you first need to installGo.

After you have set up Go and cloned the repository, switch to the root directory and run

go build ./...

This will fetch all the dependencies. After that, run

go build -o slangd ./cmd/slangd (on Windows:go build -o slangd.exe ./cmd/slangd)

Alternatly you just can run the daemon without compiling

go run ./cmd/slangd

That's it! Now you just need to runslangd (on Windows:slangd.exe) and Slang will take care of the rest such as downloading the UI and standard library.

Working on stdlib

If you want to edit stdlib, just run

SLANG_LIB=/tmp/ SLANG_DIR=<path-to-slang-lib>/slang go run ./cmd/slangd --only-daemon

About Slang runner

Slang runner allows you to run a blueprint via cli. Input data must be passed through STDIN. Output will be written to STDOUT. Input and output data must be valid newline-delimited json (ndjson). As an argument you have to provide a slang file.

cat data.ndjson | go run ./cmd/slang d37961fd-7677-4b32-ba1c-cbae2bb85999.slang | less

Links


[8]ページ先頭

©2009-2025 Movatter.jp