Error

Started by , Fri 28/11/2003 18:37:37

Previous topic - Next topic

Lionheart

What is Parse error? I get a message Error (line 3):PE03:Parse error...

After

#1
(If I understand correctly, this was posted in the correct forum by Lionheart. So no flames from anyone else for it being moved here, kay?)

It means that your code is not understood by the parser, this is usually because of syntax.
For example,
all of your statements should end with ";" EXCEPT those ending with "}". This rule also applies to the last statement within braces ("{}"), thus you can't drop the last ";" in a block either.

As it's only line 3, I wonder whether it might be incorrect commenting or invalid variable declaration.

If you can't figure it out, show us the line (and a few each side for context).

Ishmael

Just curios... what do the PE03, PE04 etc. mean? I suppose they are codes to indicate the error type, but for what type does each number stand for?
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Pumaman

Because there are several different things that can cause a parse error, the code is to enable me to find where in the compiler the problem occured, in case it is throwing up error messages wrongly.

Ishmael

Oh, kay... I have noticed it's something like you get a PE04 along with a missing semicolon error, and a PE03 with an unidentified function or varible name, or something (?)... probable I shouldn't spend my time pondering this, but it just crossed my mind...  ::)
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SMF spam blocked by CleanTalk