This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

lexical ambiguity glitch


Hi -

There is a glitch associated with the operators chosen for
pre-processor conditionals: %( %? %: %).  The problem is that the
character sequence %( could also occur in an ordinary expression:
   5%(x-5)
This ambiguity is just like C++'s ">>" vs "> >" markers for closing
nested templates.

What shall we do about this?  Nothing, relying on the generated parse
error message to plop a few spaces in?  Rename %( %) to %[ %], which I
believe is immune?

- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]