basgo icon indicating copy to clipboard operation
basgo copied to clipboard

Support BASIC string with percent sign (%)

Open udhos opened this issue 6 years ago • 0 comments

This BASIC code:

echo '10 print "%"' | basgo-build > a.go && go run a.go

Produces this invalid Go code:

fmt.Print(`%!`(MISSING))

It is possible to work-around this defect by escaping % with %%:

echo '10 print "%%"' | basgo-build > a.go && go run a.go

udhos avatar Feb 03 '19 20:02 udhos