public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* lexical ambiguity glitch
@ 2005-12-12 19:39 Frank Ch. Eigler
  0 siblings, 0 replies; only message in thread
From: Frank Ch. Eigler @ 2005-12-12 19:39 UTC (permalink / raw)
  To: systemtap

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-12 19:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-12 19:39 lexical ambiguity glitch Frank Ch. Eigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).