Author | Message | ||||
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [1128] detecting '\' - posted: 2012-05-17 19:48:36 is there a better way to detecting back slash more than this BTW , i want to detect the last token of the line against '\' Code:
http://www.freewebs.com/ogremagic/index.htm | ||||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1132] - posted: 2012-05-17 22:18:52 not quite sure what you are trying to accomplish, but i've updated the beta, Ziron_RegisterKeyword can now accept single characters to be registered (note these are handled very differently to actual keywords - since they are intended for tokenization) e.g. Code:
and i've also implemented pf function Ziron_MoveNextChar (see plugin_interface.rtf) Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||||
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [1140] - posted: 2012-05-17 23:26:03 as you already know , i am extending #define c_like directive . so with #define function_like macro can be in more than one line , something like this Code:
so i want to detect the '\' at the end of line so here is my event handler Code:
so how can i make use of you new feature char_token? http://www.freewebs.com/ogremagic/index.htm | ||||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1142] - posted: 2012-05-18 12:31:50 This looks ok, does it work correctly? 2 things, first maybe you do not know the usage of "", i see you wrote a comment // \ you can make it easier for yourself to do: Code:
and second, you should also allow support for standard ziron defines Code:
Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||||
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [1144] - posted: 2012-05-18 17:13:21 yes it works fine. but when using "\" as you suggested i got this error Code:
and when using that Code:
i got that error
http://www.freewebs.com/ogremagic/index.htm | ||||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1145] - posted: 2012-05-18 17:25:46 sorry my mistake, it is added as zirSemi_Colon, but i suggest to change this in framework.zir as i will change it in next release Code:
to Code:
as for the ordinal error that is odd, i do not see any problems to cause this, i will look into it further. Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1146] - posted: 2012-05-18 17:27:04 aha, probably " is also processing backslash for special chars, try "\\" instead, since \ is an escape character. Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||||
Emil_halim Ziron Beta Tester (send private message) Posts: 639 Topics: 104 Location: Alex, Egypt | [1147] - posted: 2012-05-18 17:33:02 ok thanks , it works well now. i have an other problem , this line give this error Code:
any help please. http://www.freewebs.com/ogremagic/index.htm |
Currently Active Users: There are currently 2 user(s) online. 0 member(s) and 2 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 |