Update 21/04/2020: Updated zmakebas 1.5.2 now supports ZX Spectrum Next NextBASIC keywords including %$nnnn hex and %@bbbb binary notation

Download and compile zmakebas 1.5.2

source code can be found here zmakebas 1.5.2

In Terminal:

cd ~/path/to/zmakebas-1.5.2/
 make
 sudo make install

To test

zmakebas -o demo2.tap -n demoname demo.bas

Double-click .tap file to load in Fuse

here are some example ZX Spectrum BASIC programs:

flags-example-extended.bas

basic-fill.bas

advanced-graphics-listing-1-4.bas

fuse zx spectrum emulator can be found here Fuse – the Free Unix Spectrum Emulator