Has anyone written a guide on creating BASIC?

Let's talk about anything related to the 6502 microprocessor.
User avatar
BigDumbDinosaur
Posts: 9426
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: Has anyone written a guide on creating BASIC?

Post by BigDumbDinosaur »

Speaking of unary minuses, in Thoroughbred BASIC, one cannot write PRINT 4 * -1, as it will generate a syntax error. However, PRINT 4 * (-1) will successfully evaluate, as will PRINT -1 * 4. Evidently, the grammar parser chokes if two operator tokens are in succession.
x86?  We ain't got no x86.  We don't NEED no stinking x86!
Post Reply