Ph0enixKM / Amber

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

🐞 Can't run Amber scripts with a shebang #196

Open jp-bennett opened 1 week ago

jp-bennett commented 1 week ago

It's almost possible to run an amber script as an an executable text file with a shebang line at the top: #!/usr/bin/env amber But when running the script with that line, Amber complains that:

ERROR 
Expected expression
at ./test.ab:1:1

It looks like the Amber interpreter just needs to recognize and ignore the shebang line in amber scripts.

Ph0enixKM commented 1 week ago

Oh yeah true. This should be an easy one.