|
|
|
|
|
Rusky
|
|
Reply #35 Posted on: January 12, 2010, 09:16:06 pm |
|
|
Joined: Feb 2008
Posts: 954
|
It just comes from the stupid idea to use <> for templates. Because the lexer finds the biggest token it can and >> is an operator, closing two template tags in a row causes problems. Other than that, this behavior for the lexer makes perfect sense- it parses "asdfasdf = 3" as asdfasdf, = and 3, rather than a, s, d, f, a, s, d, f, = and 3.
|
|
|
Logged
|
|
|
|
score_under
|
|
Reply #36 Posted on: January 13, 2010, 01:02:11 pm |
|
|
Joined: Aug 2008
Posts: 308
|
It just comes from the stupid idea to use <> for templates.
Exactly. Because the lexer finds the biggest token it can and >> is an operator, closing two template tags in a row causes problems. Other than that, this behavior for the lexer makes perfect sense- it parses "asdfasdf = 3" as asdfasdf, = and 3, rather than a, s, d, f, a, s, d, f, = and 3.
And if it did that (string into array of chars, i.e. NOTHING :p ), there'd really be no point in it.
|
|
|
Logged
|
|
|
|
RetroX
|
|
Reply #37 Posted on: January 13, 2010, 03:22:36 pm |
|
|
Master of all things Linux
Location: US Joined: Apr 2008
Posts: 1055
|
It just comes from the stupid idea to use <> for templates. Because the lexer finds the biggest token it can and >> is an operator, closing two template tags in a row causes problems. Other than that, this behavior for the lexer makes perfect sense- it parses "asdfasdf = 3" as asdfasdf, = and 3, rather than a, s, d, f, a, s, d, f, = and 3.
It does not make sense to be green without chlorophyll.
|
|
|
Logged
|
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)Why do all the pro-Microsoft people have troll avatars?
|
|
|
|
|
Josh @ Dreamland
|
|
Reply #40 Posted on: January 13, 2010, 10:28:32 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Like fucking up my parser. Twice.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|
|
|
|