This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10025] wildcards lose when embedded in conditional %( %) expressions
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 20 May 2010 01:21:08 -0000
- Subject: [Bug translator/10025] wildcards lose when embedded in conditional %( %) expressions
- References: <20090402151723.10025.eteo@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.