Rave Radio: Offline (0/0)
Email: Password:
Anonymous
New Account
Forgot Password
Page: 1Rating: Unrated [0]
Tag Testing
Good [+1]Toggle ReplyLink» Nuclear replied on Wed Oct 28, 2009 @ 10:44pm
nuclear
Coolness: 2603940
The NOPARSE Code

[b]Hello [i]World[/i][/b]

The CODE Code

 
$i = 0;
while ($i < 100)
{
echo $i . '<br />';
$i++;
}


[B]Bold[/B]
[I]Italics[/I]
[U]Underlined[/U]

[RED]RED[/RED]
[ORANGE]ORANGE[/ORANGE]
[YELLOW]YELLOW[/YELLOW]
[GREEN]GREEN[/GREEN]
[BLUE]BLUE[/BLUE]
[PURPLE]PURPLE[/PURPLE]
[VIOLET]VIOLET[/VIOLET]
[AQUA]AQUA[/AQUA]
[BLACK]BLACK[/BLACK]
[FUCHSIA]FUCHSIA[/FUCHSIA]
[GRAY]GRAY[/GRAY]
[LIME]LIME[/LIME]
[MAROON]MAROON[/MAROON]
[NAVY]NAVY[/NAVY]
[OLIVE]OLIVE[/OLIVE]
[SILVER]SILVER[/SILVER]
[TEAL]TEAL[/TEAL]
[WHITE]WHITE[/WHITE]

rave.ca
I'm feeling nuclear right now..
Good [+1]Toggle ReplyLink» flo replied on Thu Oct 29, 2009 @ 8:09am
flo
Coolness: 146280
yayyyyyyyy new codes !!!! :)
now that we can write code snippets, this board is gonna turn into a programmers board ;)
I'm feeling phd powa !!! right now..
Good [+1]Toggle ReplyLink» Nuclear replied on Thu Oct 29, 2009 @ 9:02am
nuclear
Coolness: 2603940
It's not fully working yet... Noparse is causing problems since I always look for the close tag so if there is a noparse inside a noparse it might not work correctly...
I'm feeling nuclear right now..
Good [+1]Toggle ReplyLink» flo replied on Thu Oct 29, 2009 @ 9:06am
flo
Coolness: 146280
this looks like a parenthesing/bracketing problem... you just have to use an integer variable which you increment for each opening NOPARSE and decrement for each closing NOPARSE; then you should be in "noparse" mode if and only if this variable is non-null.

but I guess you already know that... or did I misunderstand your problem?
I'm feeling phd powa !!! right now..
Good [+1]Toggle ReplyLink» Nuclear replied on Thu Oct 29, 2009 @ 9:25am
nuclear
Coolness: 2603940
The problem is I load the closing tag before the opening tag. If you have a closing tag, you should have an opening tag before it always. You don't always have a closing tag after an opening tag since you can have two opening tags in a row. Thats why I do it reversed. For the noparse it does not work since you can have a noparse inside of a noparse so it will pickup the inside one, but not the outside ones. Anyways I'll figure something out... The rest of the tags work fine, although I want the code one to look nicer.

You also have to make sure if people put the wrong number of tags it can still figure something out... Which causes even more problems... It will be fixed soon! I'm thinking about it....
I'm feeling nuclear right now..
Good [+1]Toggle ReplyLink» flo replied on Thu Oct 29, 2009 @ 9:38am
flo
Coolness: 146280
ok...
I guess you can use the solution I told you, and if the variable is still 1 or 2 at the end of the message, you can consider the last closing tag as forgotten.

How are you parsing message bodys? Are you using a lexical+syntactical analyser, or did you write your own grammar rules?
How many times are you browsing the whole message (1, 2, ...)?
I'm feeling phd powa !!! right now..
Good [+1]Toggle ReplyLink» Nuclear replied on Thu Oct 29, 2009 @ 1:43pm
nuclear
Coolness: 2603940
I wrote my own like always... Everything works except the noparse which works unless you have a noparse in a noparse...

I am going to re-wirte it though and hopefully make everything better.

[ www.rave.ca ]
I'm feeling nuclear right now..
Good [+1]Toggle ReplyLink» flo replied on Thu Oct 29, 2009 @ 2:03pm
flo
Coolness: 146280
ok...
your code looks nice but lacks documentation ;)
I'm feeling phd powa !!! right now..
Good [+1]Toggle ReplyLink» Nuclear replied on Thu Oct 29, 2009 @ 5:44pm
nuclear
Coolness: 2603940
I don't normally document my code since I'm the only one doing anything with it... If someone else wanted to do something then I'd document it. It takes almost as long to document (if not longer) then to actually write the code.
I'm feeling nuclear right now..
Good [+1]Toggle ReplyLink» flo replied on Thu Oct 29, 2009 @ 6:29pm
flo
Coolness: 146280
Yes but I don't know about you but if I don't document my code I get lost quite quickly in it :)
But then, I've never coded much, and you've been at it for ages, so I guess with time and experience you pick up some reflexes/habits and see right through the Matrix ;)
I'm feeling phd powa !!! right now..
Tag Testing
Page: 1
Post A Reply
You must be logged in to post a reply.