Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2.programmer > #162
| From | Jerry <awanderin@yahoo.ca> |
|---|---|
| Newsgroups | comp.sys.apple2.programmer |
| Subject | Re: Applesoft syntax |
| Date | 2012-02-10 01:43 -0700 |
| Organization | bbs-scene usenet news |
| Message-ID | <m3y5sbhye6.fsf@yahoo.ca> (permalink) |
| References | <89aca5f9-7923-41cf-9331-e6f7ae9230c6@k10g2000yqk.googlegroups.com> <4uSdnY3XU_hGua7SnZ2dnUVZ_vWdnZ2d@earthlink.com> <27744190.458.1328770141281.JavaMail.geo-discussion-forums@yqkz3> <xsWdncW_44E5G67SnZ2dnUVZ5jmdnZ2d@giganews.com> <88b84b6e-c4bf-4651-acc2-04bc56cbf650@sk8g2000pbc.googlegroups.com> |
Joshua Bell <inexorabletash@gmail.com> writes: > On Feb 9, 12:41 am, "Michael J. Mahon" <mjma...@aol.com> 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
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Applesoft syntax Deckard <boutillon@free.fr> - 2012-02-05 14:58 -0800
Re: Applesoft syntax magnusfalkirk <dean.phares@gmail.com> - 2012-02-05 15:52 -0800
Re: Applesoft syntax Deckard <boutillon@free.fr> - 2012-02-06 16:01 -0800
Re: Applesoft syntax BLuRry <brendan.robert@gmail.com> - 2012-02-05 22:02 -0800
Re: Applesoft syntax Joshua Bell <inexorabletash@gmail.com> - 2012-02-06 00:06 -0800
Re: Applesoft syntax Deckard <boutillon@free.fr> - 2012-02-06 15:41 -0800
Re: Applesoft syntax Joshua Bell <inexorabletash@gmail.com> - 2012-02-06 21:31 -0800
Re: Applesoft syntax "Michael J. Mahon" <mjmahon@aol.com> - 2012-02-08 11:28 -0800
Re: Applesoft syntax Antoine Vignau <antoine.vignau@laposte.net> - 2012-02-08 12:07 -0800
Re: Applesoft syntax David Schmidt <schmidtd@my-deja.com> - 2012-02-08 15:30 -0500
Re: Applesoft syntax Jerry <awanderin@yahoo.ca> - 2012-02-08 21:19 -0700
Re: Applesoft syntax Deckard <boutillon@free.fr> - 2012-02-08 13:40 -0800
Re: Applesoft syntax "Anton Treuenfels" <teamtempest@yahoo.com> - 2012-02-08 19:43 -0600
Re: Applesoft syntax BLuRry <brendan.robert@gmail.com> - 2012-02-08 22:49 -0800
Re: Applesoft syntax "Michael J. Mahon" <mjmahon@aol.com> - 2012-02-09 00:41 -0800
Re: Applesoft syntax Joshua Bell <inexorabletash@gmail.com> - 2012-02-09 20:56 -0800
Re: Applesoft syntax Jerry <awanderin@yahoo.ca> - 2012-02-10 01:43 -0700
Re: Applesoft syntax Deckard <boutillon@free.fr> - 2012-02-09 14:08 -0800
Re: Applesoft syntax Vladimir Ivanov <vladitx@XXXyahooXXX.com> - 2012-02-10 12:04 +0200
Re: Applesoft syntax Deckard <boutillon@free.fr> - 2012-02-11 15:16 -0800
Re: Applesoft syntax Vladimir Ivanov <vladitx@XXXyahooXXX.com> - 2012-02-12 11:57 +0200
Re: Applesoft syntax Deckard <boutillon@free.fr> - 2012-02-11 14:55 -0800
Re: Applesoft syntax finksterj <finkjsc@yahoo.com> - 2012-02-11 16:58 -0800
Re: Applesoft syntax Deckard <boutillon@free.fr> - 2012-02-12 01:02 -0800
csiph-web