igor-petruk / scriptisto

A language-agnostic "shebang interpreter" that enables you to write scripts in compiled languages.
Apache License 2.0
934 stars 25 forks source link

Rewrite build config parsing to me shorter, cleaner and use some standard config format #1

Closed igor-petruk closed 4 years ago

igor-petruk commented 4 years ago

YAML or TOML are good candidates

igor-petruk commented 4 years ago

Something like this if TOML

script_src="script.ml"
build_cmd="dune build script.exe"
target_bin="@@@/_build/default/script.exe"

[[file]]
name="dune"
contents="""
(executable
     (name script)
      (libraries lwt.unix))
"""

Inside of the block


#  scriptisto-begin
#  <-- here
#  scriptisto-end
igor-petruk commented 4 years ago

Might look ugly for Rust, if we have TOML inside of TOML

igor-petruk commented 4 years ago

Oops, forgot to reference 7f1286bad8f4941bf04d53789c9b7454c7d9e1d9