Anybody using
int `-=7;
in their code deserve having it broken. However, using #pike, it shouldn't be a problem implementing new tokens whenever. Backwards compaibility is king, and #pike is the way to maintain it.
/ Fredrik (Naranek) Hubinette (Real Build Master)
Previous text:
2003-04-05 19:34: Subject: `-=
No, since the terminal `+= exists in the grammar and the lexer is constructed to always choose the longest possible terminal. So if `-= was added to the grammar then it would be just as wrong to parse the sequence `-= as two tokens.
(This shows that it isn't so easy to extend the set of operator tokens and backquote identifiers. If the new token is a concatenation of shorter tokens then one must make sure that the concatenation isn't grammatically valid anywhere in the language.)
/ Martin Stjernholm, Roxen IS