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]

[Bug translator/10025] wildcards lose when embedded in conditional %( %) expressions


------- Additional Comments From jistone at redhat dot com  2010-05-13 18:02 -------
(In reply to comment #4)
> Here's a "band-aid" patch that seems to work, but doesn't really fix the
> underlying issues:

That only helps for the simplest wildcard, "*".  For anything more complex, say
"foo*", you'll end up with tok_identifier("foo") followed by tok_operator("*"),
whereas outside of the preprocessor it's a single tok_identifier("foo*").

I thought about peeking ahead to the next token and merging them, but you also
need to make sure that we don't merge them when they truly are two tokens, like
"foo *" (which in a probe point should be a syntax error).

Anyway if we figure this out, I suggest making that kludge permanent, and remove
the equally kludgy wildcard flag from the tokenizer.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10025

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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