Register | Login
Forum Index > Requests and Feedback > get entire line
Author Message
Pages: 1 2 3 4 5 6 7 8
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[470] - posted: 2011-11-08 15:58:27
got this error

Ziron Compiler 1.1.27.6
Copyright (C) 2011. OverHertz Ltd. All rights reserved.
--------------------------------------------
11/8/2011 3:55:34 PM
--------------------------------------------

PlugSys: Emit plugin has loaded!
--------------------------------------------


[13,20]: Expected number or hexadecimal but found - in [zirplug/framework.zir]
Code:
zirUnexpected = -1, // Result for Ziron_ExpectNextToken if not expected token.



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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[471] - posted: 2011-11-08 16:02:35
strange,, ok then remove the zirUnexpected = -1, line and i will correct it and re-add it for next release.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[472] - posted: 2011-11-08 16:04:27

ok removed and got that

Ziron Compiler 1.1.27.6
Copyright (C) 2011. OverHertz Ltd. All rights reserved.
--------------------------------------------
11/8/2011 4:02:39 PM
--------------------------------------------

PlugSys: Emit plugin has loaded!
--------------------------------------------


[240,13]: Expected } or identifier but found zirCALL in [zirplug/framework.zir]
Code:
zirCALL = 416, // call


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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[473] - posted: 2011-11-08 16:06:11
infact i know why, enums don't support negative numbers and probably not a good idea... above the enum .. add a new const

Code:
const zirUnexpected = -1;    // Result for Ziron_ExpectNextToken if not expected token.

enum ZirToken: DWord {
  zirSEMI_COLON = 1,      // ;
  zirCOLON = 2,        // :
  zirCOMMA = 3,        // ,
  zirFullstop = 4,      // .

.....


Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[474] - posted: 2011-11-08 16:08:46
aha, zirCall is a problem because of the zircall calling method.. ok we can change this to

zirCallF = 416,

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[475] - posted: 2011-11-08 16:10:59

ok works fine now .

what about my previous post #[467]

thanks.

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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[476] - posted: 2011-11-08 16:13:42
you could do it with a peeknexttoken after

Code:
      eax = Ziron_ExecuteF(@buf);
      if (eax == false) {
          Ziron_FatalError('Error plugin');
         return true;
       }


but i guess it would be complex, to be honest, that line looks very complex, would it not be better to use a comma?

Code:
mov 10 into eax, 20 into ebx, 5 into edx


Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[477] - posted: 2011-11-08 16:17:18

ok , good solution.

BTW this was works ok with previous ver but now give this error

Ziron Compiler 1.1.27.6
Copyright (C) 2011. OverHertz Ltd. All rights reserved.
--------------------------------------------
11/8/2011 4:12:45 PM
--------------------------------------------

PlugSys: Emit plugin has loaded!
PlugSys: Mov plugin has loaded!
PlugSys: mov 10 into eax

PlugSys: eax = 10;
PlugSys: mov 100 into edx; print('edx = ',

PlugSys: edx = 100;
PlugSys: mov 300 into esi print('esi = ',

PlugSys: esi = 300;
PlugSys: mov eax, 10; into ax;

--------------------------------------------


[22,23]: Expected >> or << or += or -= or = or ( or as or ++ or -- but found ; in [testprg.zir]
Code:
mov eax, 10; into ax;


Code:
program WIN32CUI 'mov plugin test';

#include 'console.zir';

// this will pares with mov plugin
mov 10 into eax
 
// this will pares by Ziron 
mov ebx, 30
 
print('eax = ', eax:int, '\r\n');


mov 100 into edx; print('edx = ', 
                   edx:int, '\r\n');
                   
mov 300 into esi  print('esi = ', 
                   esi:int, '\r\n');  
                   
//mov 10 into eax 20 into ebx 30 into ecx          

mov eax, 10; into ax;                           

wait_key(nil);
ExitProcess(0);



http://www.freewebs.com/ogremagic/index.htm
Pages: 1 2 3 4 5 6 7 8
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 8 user(s) online. 0 member(s) and 8 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd