Register | Login
Forum Index > Requests and Feedback > ZirToken
Author Message
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[339] ZirToken - posted: 2011-11-05 09:14:49

Hi

sometimes , the user need to put his own ZirToken that was not in enum ZirToken.

foe example i want my basic plugin pares this code correctly
Code:
DIM Name$;


because '$' is not included as a ZirToken , Ziron remove it.

the good solution may be adding Ziron_RegisterToken just like Ziron_RegisterKeyword to allow
the user to make his own Tokens.

what do you think ?


http://www.freewebs.com/ogremagic/index.htm
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[340] - posted: 2011-11-05 10:19:39


also i need this Ziron_UnRegisterToken.

http://www.freewebs.com/ogremagic/index.htm
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[341] - posted: 2011-11-05 10:43:31

also , how can i check the end of the line ?

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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[343] - posted: 2011-11-05 13:21:19
OK i have made it possible to detect $, however new lines are not detectable since they are not classified as a identifiers, i wil think about an alternative method for the plugin system.

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
[344] - posted: 2011-11-05 14:31:54
OK, i've added 2 new pf functions

Ziron_IsNextLineBreak

this function will return true if a line break is found before the next valid token.

and

UnregisterKeyword

Unregisters any of your registered keywords.

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
[346] - posted: 2011-11-05 15:42:20

thank you very much.

but i was talking about Tokens no keyword , also register a token give the user the freedum
to add his desired Token.


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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[347] - posted: 2011-11-05 15:53:23
Tokens will not be possible to register, because tokens are inbuilt into the assembler for high speed comparison, none valid tokens are detected as zirIdent, so it is possible to write a function to check your own custom tokens.

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
[349] - posted: 2011-11-05 16:05:53

so it is possible to write a function to check your own custom tokens.


ok , could you please give small code that demonstrate that.

BTW Dim KeyWord can pares this
Code:
Dim Var as int32;

//DIM Name$;

DIM a AS int32, b AS Dword, c AS char;

dim k%;  // integer


i will do those ,but when i know how to pares ! #
Code:
Dim fVal!; // single  variable
Dim dVal;  // double  variable


http://www.freewebs.com/ogremagic/index.htm
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 10 user(s) online. 0 member(s) and 10 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