dbohdan / embedded-scripting-languages

A list of embedded scripting languages
http://dbohdan.github.io/embedded-scripting-languages/
1.3k stars 78 forks source link

Add Nickel #90

Closed ad-si closed 9 months ago

ad-si commented 9 months ago

https://nickel-lang.org

dbohdan commented 9 months ago

https://github.com/tweag/nickel/issues/1453#issuecomment-1643997366 from 2023 says:

Unfortunately, the nickel-core library is indeed currently a bit provided "as it is" without much guidance nor backward-compatibility guarantee. I must say that it's not currently a high priority to work on that front. However, there might still be small effort improvements we can make.

Is it ready for embedding?

ad-si commented 9 months ago

Yes, it works with https://docs.rs/nickel-lang-core/latest/nickel_lang_core/ Just tried it out myself. Basically: Program::new_from_file() -> prog.eval_full_for_export() -> serialize::to_string()