Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: on Fri 28/11/2003 18:37:37

Title: Error
Post by: on Fri 28/11/2003 18:37:37
What is Parse error? I get a message Error (line 3):PE03:Parse error...
Title: Re:Error
Post by: After on Sat 29/11/2003 03:54:22
(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).
Title: Re:Error
Post by: Ishmael on Sat 29/11/2003 19:08:18
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?
Title: Re:Error
Post by: Pumaman on Sun 30/11/2003 15:43:21
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.
Title: Re:Error
Post by: Ishmael on Mon 01/12/2003 06:14:03
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...  ::)