Home  |   Notes  |   Languages  |   Programs  |   Homework

Re: Whitespace

New Message Reply About this list Date view Thread view Subject view Author view

Jonathan Berkowitz (jberkowi@VT.EDU)
Thu, 20 Sep 2001 01:16:09 -0400


Message-ID:  <000001c14193$5b8ab720$3d4723d0@Jon>
Date:         Thu, 20 Sep 2001 01:16:09 -0400
From: Jonathan Berkowitz <jberkowi@VT.EDU>
Subject:      Re: Whitespace

It says in the spec whitespace can be used to separate tokens so in that
expression 1 and 2 are separate tokens.

-----Original Message-----
From: discussion list [mailto:CS3304_91312@listserv.vt.edu] On Behalf Of
Justin
Sent: Thursday, September 20, 2001 12:39 AM
To: CS3304_91312@LISTSERV.VT.EDU
Subject: [CS3304_91312] Whitespace

        Wondering if this is an error.. Says in spec that whitespace in
an expression doesn't matter. So if we get a line of input like so: 1 2
+ 3
        Is this supposed to be read as 12+3 (which evaluates to iconst
3, 12 and an iadd), or is this somehow a syntax error?

thanks
Justin


New Message Reply About this list Date view Thread view Subject view Author view

Home  |   Notes  |   Languages  |   Programs  |   Homework
copyright © 2001 Virginia Tech, ALL RIGHTS RESERVED
Class site maintained by Stephen H. Edwards <edwards@cs.vt.edu>