Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Requests and Feedback

ZirToken

A community discussion post from the original code:zIRON forum.

Replies

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

ok here is with strfold , still have access violation

function event_Let() {
  uses edi;
  char buf[2048];
  char line[2048];
  char val[255];
  Dword Len;
  boolean ParesFlg = true;  
  len = Ziron_ExtractLine(@line, 2048);
  // remove 'let' form line
  strFold(@buf, 4);
  if(ParesFlg)
   { 
      Ziron_ShowMessage(@line);                // show our entire line for debug purpose
      Ziron_GetNextToken();  
      return true;
   }
  else
   {   
      return false;                           // let Ziron handle the line  
   }   
}

here is the test code

Let a = 100;

http://www.freewebs.com/ogremagic/index.htm

Colin admin
Posts
928
Threads
49
Location
Bulgaria

ps i see your line is on @line, not @buf, that was just example :P

strFold(@line, 4);
Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

oh , sorry ,corrected it and still have access violation

http://www.freewebs.com/ogremagic/index.htm

Colin admin
Posts
928
Threads
49
Location
Bulgaria

can you try without the boolean? i think there is a small problem with this, i will have a check now...

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

yes , the problem is in boolean

http://www.freewebs.com/ogremagic/index.htm

Colin admin
Posts
928
Threads
49
Location
Bulgaria

ok, i found it is not just boolean, it is the direct assignment has another bug, try this

boolean yourvarname;
yourvarname = true;

this should work for now :)

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

yes you are wright , will ziorn will allow assignment with var declaration.

http://www.freewebs.com/ogremagic/index.htm

Colin admin
Posts
928
Threads
49
Location
Bulgaria

sorry i don't understand, what do you mean?