This is sad to read when there are ways to make them run on modern computers! You'd still have to type the listings though (unless someone OCR'd them all...).
As has been mentioned there are emulators for many early BASICs, but honestly the basic algorithms and concepts should be pretty easy to apply in something more modern, like Python or VB.NET my kids are learning at school.
http://robhagemans.github.io/pcbasic/
From the docs [0]:
"PC-BASIC is a free, cross-platform interpreter for GW-BASIC, Advanced BASIC (BASICA), PCjr Cartridge Basic and Tandy 1000 GWBASIC. It interprets these BASIC dialects with a high degree of accuracy, aiming for bug-for-bug compatibility. PC-BASIC emulates the most common video and audio hardware on which these BASICs used to run. PC-BASIC runs plain-text, tokenised and protected .BAS files...."
Seems like it would be easy to link to web pages with emulators for the older systems (or perhaps a simple BASIC emulator) in javascript.
Better yet, they could host emulators themselves along with instructions on how to use them with the books!
(They could also collaborate with the Internet Archive, which has an extensive historical computing and emulation collection.)
LIST
10 LET A$="***"
20 FOR J = 1 TO 7
30 PRINT TAB(J);A$
40 NEXT J
50 FOR K=1 TO 3
60 PRINT TAB(J+1);A$
70 NEXT K
80 FOR L = 7 TO 1 STEP -1
90 PRINT TAB(L);A$
100 NEXT L
Ok
works perfectly.I rather like this way of working, define a bit of program, try it out, refine it, try again without having to either compile or switch context from editor to command line.
Edit: formatting.
When I was done, I realized I knew how to code basic. No one had to explain loops or goto or if after you type it in a few times.
I will add that OCR is not going to help you because a lot of the code was PEEK and POKE. I suppose your basic interpreter could also emulate the C64 memory space.
I've often wondered why programming books don't use simple graphics or diagrams to illustrate programming concepts. Anyone writing a technical guide (of any kind) would benefit from reading these as a source of ideas and inspiration.