Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!news.bbs-scene.org!not-for-mail From: Jerry Newsgroups: comp.sys.apple2.programmer Subject: Re: Applesoft syntax Date: Fri, 10 Feb 2012 01:43:13 -0700 Organization: bbs-scene usenet news Lines: 41 Message-ID: References: <89aca5f9-7923-41cf-9331-e6f7ae9230c6@k10g2000yqk.googlegroups.com> <4uSdnY3XU_hGua7SnZ2dnUVZ_vWdnZ2d@earthlink.com> <27744190.458.1328770141281.JavaMail.geo-discussion-forums@yqkz3> <88b84b6e-c4bf-4651-acc2-04bc56cbf650@sk8g2000pbc.googlegroups.com> NNTP-Posting-Host: d50-99-206-130.abhsia.telus.net Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.bbs-scene.org 1328863393 11519 50.99.206.130 (10 Feb 2012 08:43:13 GMT) X-Complaints-To: abuse@bbs-scene.org NNTP-Posting-Date: Fri, 10 Feb 2012 08:43:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:q92VEVoetDx9ZPSthn99ywkY/Cw= Xref: x330-a1.tempe.blueboxinc.net comp.sys.apple2.programmer:162 Joshua Bell writes: > On Feb 9, 12:41 am, "Michael J. Mahon" wrote: >> >> The only things in Applesoft program that don't get tokenized are >> strings (and possibly DATA statements--I've never looked ;-). > > From my testing, DATA statements do get tokenized. Quoting is optional > but needed to avoid reserved word handling. So IIRC (no emulator > handy) this: > > 10 DATA a,b,c : FOR I = 1 TO 3 : READ A$: PRINT A$ : NEXT > > will print: > > a > b > c > > ... but you almost always want to quote strings to avoid reserved word > tokenization. > > And don't forget REM statements, which are not tokenized, including > any colons! Nope, DATA statements are not tokenized. They are copied as-is until the next colon that is not part of a token. Example: ]10datatext,hgr,lomem::text ]list 10 DATA text,hgr,lomem:: TEXT -- -- Jerry awanderin at yahoo dot ca