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

Colin admin
Posts
928
Threads
49
Location
Bulgaria
zironProc does not make any difference , ziron does not detect function call .

ok will check this tomorrow morning, not at the office right now :)

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

Ziron_RegisterUFunction & Ziron_CallUFunc does not work as expect

here is a part of plugin

// start pares if the var type is string
  if(StringFlg)
   {
          // here we start getting what after '=' 
          Ziron_GetNextToken(); 
          H_strcpy(@str1,Ziron_GetStringValue());

          buf=0;
          H_strjoin(@buf, '(@' , @var, ', \'' , @str1, '\');' );
          Ziron_CallUFunc(U_strcpy, @buf);
      @lop:              
          eax = Ziron_IsNextLineBreak();
          if (!eax) {
              eax = Ziron_GetNextToken(); 
              case (eax) {
                    state zirAndSym:
                    state zirComma:
                        Ziron_GetNextToken(); 
                        H_strcpy(@str1,Ziron_GetStringValue());   
                        H_strjoin(@buf, '(@' , @var, ', \'' , @str1, '\');' );
                        Ziron_CallUFunc(U_strcat, @buf);
                        break;
                    // remove ';' if found     
                    state zirSemi_Colon:
                        //Ziron_ShowMessage('found ;'); 
                        break; 
                   // is there a function call
                    state zironProc:   
                        Ziron_ShowMessage('found func'); 
                        break;  
                   
                    default:
                        Ziron_FatalError('Expected "+" or "&" or ";"');
                        return true;       
                }
               goto @lop;     
           }         
          Ziron_ShowMessage(@buf); 
       /*
          Len = H_strlen(@buf);    
          eax = Ziron_Execute(@buf,Len);
          if (eax == false) {
              Ziron_FatalError('error in let statment');
             return true;
          }
        */
          return true;
   }

and here is the test code

Let  c = 'Emil' & ' ' & 'halim'  

it output that 'EmilEmilEm' it must be 'Emil halim'

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

without telling what is problem or error i can not help.....

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

ok, no problem.

thank you for your job, and good by.

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

if you write what is error you get, then i can see if problem in your code or ziron

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

ok, i have fixed it , by butting buf=0; to ctear the buffer.

i was not clear enough.

anyway did you find the function detecting , hope you did it.

again thank you for you support.

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

not had time to look yet, but will shortly

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

ok i have made a new topic for that

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