Emil_halim
member
Posts
639
Threads
104
Location
Alex, Egypt
Post #340
2011-11-05 10:19:39 UTC
also i need this Ziron_UnRegisterToken.
http://www.freewebs.com/ogremagic/index.htm
Emil_halim
member
Posts
639
Threads
104
Location
Alex, Egypt
Post #341
2011-11-05 10:43:31 UTC
also , how can i check the end of the line ?
http://www.freewebs.com/ogremagic/index.htm
Colin
admin
Posts
928
Threads
49
Location
Bulgaria
Post #343
2011-11-05 13:21:19 UTC
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.
Colin
admin
Posts
928
Threads
49
Location
Bulgaria
Post #344
2011-11-05 14:31:54 UTC
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.
Emil_halim
member
Posts
639
Threads
104
Location
Alex, Egypt
Post #346
2011-11-05 15:42:20 UTC
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
Colin
admin
Posts
928
Threads
49
Location
Bulgaria
Post #347
2011-11-05 15:53:23 UTC
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.
Emil_halim
member
Posts
639
Threads
104
Location
Alex, Egypt
Post #349
2011-11-05 16:05:53 UTC
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
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 ! #
Dim fVal!; // single variable
Dim dVal; // double variable
http://www.freewebs.com/ogremagic/index.htm