3 ms·
Felt the same. Most complete example seems to be the installer for the language which is written in it. This covers some of the things you mentioned https://gi
by smoe 5y ago
Felt the same. Most complete example seems to be the installer for the language which is written in it. This covers some of the things you mentioned
https://github.com/cotowali/konryu/blob/main/konryu.li https://github.com/cotowali/konryu/blob/main/konryu.li
and the generated shell script
https://raw.githubusercontent.com/cotowali/konryu/dist/konryu.sh https://raw.githubusercontent.com/cotowali/konryu/dist/konry...
There is also the website, heavily under construction, but has some more documentation on the language than the readme
https://cotowali.org/ https://cotowali.org/
- remram 5y agoSo this 366-line script compiles into 588 lines of shell, 2,229 lines if we count the parts that seem to come from the imported modules. That includes a lot of auto-generated names like `_cotowali_tmp_166` or `first8b04d5e3775d298e78455efc5ca404d5` and replacements for built-in shell functions like `eprintln` or `rm_r`. In fact that script seems to use `eprint`, `eprintln`, `println`, `print`, AND `echo` which seems a little much. It would have been nice to see something more transparent, e.g. a type-checked extension to shell, like TypeScript is for JavaScript. Something to make it easier to write correct shell scripts, but would generate understandable, editable shell scripts.