Realized for the first time tonight that C++ keywords aren't actually "tokens" in the same way that all the rest of the tokens are...
-
-
Replying to @cmuratori
Not sure why it took me so long to internalize. Not that it's super important, but it seems like something worth understanding.
1 reply 0 retweets 0 likes -
-
Replying to @AMadan4
They aren't matched prior to identifier maximum munch. Which I guess you could say is still "the same"...
2 replies 0 retweets 0 likes -
Replying to @cmuratori @AMadan4
... but, eg., the string "<<9" is the same as "<< 9", but "do9" is not the same as "do 9".
1 reply 0 retweets 2 likes -
Replying to @cmuratori
well, that seems to be pretty normal behavior. '<<' is a token in its own right and do9 is an identifier ([a-zA-Z0-9...])
1 reply 0 retweets 0 likes -
Replying to @AMadan4
But only because of the was in which the lexer is constructed. If the token "do" had priority, that wouldn't work!
2 replies 0 retweets 0 likes -
Replying to @cmuratori
Is there any language with similar syntax that doesn't do (no pun intended) the same?
1 reply 0 retweets 0 likes
I would assume not. But I only happen to work with C++ :)
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.