Wiki :: Search :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in
GamingTools Subscription: Not logged in
Compiler doesn't recognize identifiers?

 
Post new topic   Reply to topic    Lavish Software Forum Index -> GamingTools Public::EQWatcher Evolution
View previous topic :: View next topic  
Author Message
spointman

 

Rank: Non-Subscriber

Joined: 24 Jul 2004

Posts: 8

Post subject: Compiler doesn't recognize identifiers?
Reply with quote
Sample script:
Code:
function main() {}

function DoStuff()
{
   identifier LogFile 0;
   Create(LogFile, "log.txt");

   // Do whatever with the file here

   Close(LogFile);
}


When I compile, the compiler says:
Quote:
C:\Games\EQWatcher Advanced>eqwesc id-test.eas id-test.eac
EQWESC EQWatcher Evolution Script Compiler v1.16 (compiled Wed Sep 17 19:19:02 2
003)
Input: C:\Games\EQWatcher Advanced\id-test.eas
Output: C:\Games\EQWatcher Advanced\id-test.eac
EQWatcher Directory:
Processed 2 globals
identifier LogFile 0;
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 5):
Unrecognized execution-level symbol 'identifier' of type unknown
Create(LogFile, "log.txt");
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 6):
Unrecognized execution-level symbol 'LogFile' of type unknown
Create(LogFile, "log.txt");
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 6):
Could not evaluate parameter 1
Create(LogFile, "log.txt");
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 6):
Function call without parameters
Close(LogFile);
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 10):
Unrecognized execution-level symbol 'LogFile' of type unknown
Close(LogFile);
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 10):
Could not evaluate parameter 1
Close(LogFile);
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 10):
Function call without parameters
Please fix errors

<Press any key.>


The first error says the compiler doesn't recognize the word "identifier", and the rest of the errors all basically mean that the identifier "LogFile" wasn't defined.

Thinking that maybe identifiers have to be top-level, I tried:
Code:
function main() {}

identifier LogFile 0;

function DoStuff()
{
   Create(LogFile, "log.txt");

   // Do whatever with the file here

   Close(LogFile);
}


That failed too:
Quote:
C:\Games\EQWatcher Advanced>eqwesc id-test.eas id-test.eac
EQWESC EQWatcher Evolution Script Compiler v1.16 (compiled Wed Sep 17 19:19:02 2
003)
Input: C:\Games\EQWatcher Advanced\id-test.eas
Output: C:\Games\EQWatcher Advanced\id-test.eac
EQWatcher Directory:
identifier LogFile 0;
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 3):
Invalid top-level statement
Processed 3 globals
Please fix errors


I also tried moving the identifier statement to the main() function, but got basically the same error as the first example above.

Any ideas?
PostSun Sep 16, 2007 3:11 pm
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Lavish Software Forum Index -> GamingTools Public::EQWatcher Evolution All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2002 phpBB Group