Ph0enixKM / Amber

💎 Amber the programming language compiled to bash
https://amber-lang.com
GNU General Public License v3.0
3.54k stars 70 forks source link

REPL support? #96

Closed tigerinus closed 1 month ago

tigerinus commented 1 month ago

Would be great to support an interactive environment that does read-eval-print loop...not sure if it is possible.

b1ek commented 1 month ago

Perhaps this kind of thing would be better off maintained as a separate project? To include fancy features like syntax highlighting, completition, etc

Ph0enixKM commented 1 month ago

You can use amber (and it's experimental for now standard library) as a tool in command line like this:

amber -e 'echo upper("hello world")'

But creating a nice REPL for Amber would imply that we have to rethink some features. In order to make it right, we'd have to build it from scratch. Also the fact that Amber is compiled makes it a bit more difficult to implement it efficiently.

I'm closing this issue. Someone can create a project where commands are sent to Amber and the response is returned just like in a REPL.