sloppy

Crates.iosloppy
lib.rssloppy
version0.1.2
sourcesrc
created_at2023-03-14 03:34:34.472589
updated_at2023-03-29 03:01:55.882655
descriptionA binary package to run sloppy script.
homepage
repositoryhttps://github.com/tycheng/sloppy/tree/main/sloppy
max_upload_size
id809464
size108,033
Tianyu Cheng (tycheng)

documentation

README

Sloppy

sloppy is a script interpreter that allows multiple programming languages to work together. It is based on toml format, where user defines a sequence of commands, and what variables each command imports and exports. The name sloppy simply means it is meant for one-time scripts, not for serious work.

Here's an example:

[[command]]
backend = "lua"
errexit = true
imports = []
exports = ["values"]
program = """
values = {
    name = "Tianyu",
    data = { "hello", "world", 123 }
}
print("Hello from Lua!")
"""

[[command]]
backend = "python"
errexit = true
imports = ["values"]
exports = []
program = """
print("Hello from Python!")
print(values)
"""

Supported Backends

  1. lua

  2. python

  3. nushell

Disclaimer

This project is currently at an early stage, use at your own risk. Feedbacks are appreciated.

Author(s)

Tianyu Cheng

Commit count: 0

cargo fmt