Home  |   Notes  |   Languages  |   Programs  |   Homework

Re: error question

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

Scott Schneider (scschnei@VT.EDU)
Tue, 25 Sep 2001 23:35:03 -0700


Message-ID:  <003e01c14655$60a2efe0$0100a8c0@SCOTTSTOY>
Date:         Tue, 25 Sep 2001 23:35:03 -0700
From: Scott Schneider <scschnei@VT.EDU>
Subject:      Re: error question

It was said in class that a lexical error (invalid tokens) takes precedence
over a syntax error.

Scott Schneider, still waiting for his curator score...
scschnei@vt.edu

----- Original Message -----
From: "Brian Melanson" <bmelanso@VT.EDU>
To: <CS3304_91312@LISTSERV.VT.EDU>
Sent: Tuesday, September 25, 2001 8:30 PM
Subject: [CS3304_91312] error question

> Maybe this was said in class. But let's assume a line has both types of
> errors?
>
> Is it ok to report the first error?
>
> for example:
> // 8 * + '
> Expression contins invalid token(s).
>
> // 8 + * '
> Incorrect expression syntax.
>
> is this what other people have?
>
> - Brian


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>