Re: What is a "parse error"?
Re: What is a "parse error"?
- Subject: Re: What is a "parse error"?
- From: Itrat Khan <email@hidden>
- Date: Fri, 3 Aug 2001 12:09:04 -0400
On Thursday, August 2, 2001, at 11:19 PM, Scott Steinman wrote:
Upon building, I got an error stating that there was a "parse error"
before NSHashTable. Removing that line of code removes the compilation
error.
What is a "parse error"?
- (id) initWithContentRect: (NSRect) contentRect
styleMask: (unsigned int) aStyle
backing: (NSBackingStoreType) bufferingType
defer: (BOOL) flag
{
keyTable = [ [ NSHashTable alloc ] initKeyDesc: "i" ];
return [ super initWithContentRect: contentRect
styleMask: aStyle
backing: bufferingType
defer: flag ];
}
A parse error means the compiler couldn't parse your source file (i.e.
syntax error). I can't see anything obvious in your code. In the past,
I've had the compiler complain because I accidentally typed
option-space instead of a space. If the code compiles without that one
line, try typing that line in again (instead of pasting the line back).
Another reason you'd have parse errors is if your brackets don't match
or if there's a semi-colon missing, but I don't see anything like that
in your code snippet.
..........................................
Itrat Khan
http://www.itrat.net