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-20 01:21 -------
(In reply to comment #6)
> If we want to be selective to the presence of whitespace, one
> not-too-gross way may be to have a new flag within tokens, set by the
> lexer, to indicate that some whitespace was skipped since the last
> token.  We'd stop the gluing upon such a token.

The patch I just attached solves the problem without changing the wildcard flag.
 However, if you still want to lessen the wildcard impact, I think we could add
a just-ate-whitespace flag to the lexer instead of carrying it around in every
token.  My patch makes it so we never read more than one token from the lexer at
a time, so the flag would still be current.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jistone at redhat dot com


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]