dzaima / CBQN

a BQN implementation in C
GNU General Public License v3.0
329 stars 46 forks source link

Add argument for printing last result of executed file #84

Closed dancek closed 1 year ago

dancek commented 1 year ago

For my BQN slack bot, it seems better to put larger amounts of code in a file and execute from there. But I need to print the last evaluation result, so something like this would be useful.

I can rewrite this if you have better ideas of how it should be done, or if you'd rather do it yourself feel free to close this PR.

dzaima commented 1 year ago

It's easy enough to do this manually - bqn -p '•Import"file.bqn"'. The arguments are there just for the most common of the most common use-cases, everything else should be done within BQN code.