coderofsalvation / powscript

transpiler written in bash: painless shellscript, indentbased, coffee for the shell with hipster-sparkles v1 BETA LANDED 🎉🎉🎉🎉 thanks fcard!
http://powscript.isvery.ninja/
Other
159 stars 13 forks source link

allow pipe on newline with backslash #22

Closed coderofsalvation closed 6 years ago

fcard commented 6 years ago

You mean like:

f x\
| g y

? It's really useful, but I wonder what whitespace rules should be applied to it, if any... I was thinking about that, since we're removing symbols and making things name-based, it maybe would be nice to have, at least in addition to the above, something like:

pipe
  f x
  g y

As well as other things like:

subshell
  f x
  g y
fork
  f x
  g y

Regardless, escaped newlines are a neat feature to have, in this and other contexts.

fcard commented 6 years ago

Implemented in #38 slashc