>>> "Berndl, Klaus" <klaus.berndl@...> seems to think that:
[ ... ]
>>This could be an easy piece in semantic 2, but in 1.4,
>>you need to modify semantic-c-flex-extensions with something like
>>this:
>
>> "L\\s\""
>
>>which would then need the existing string logic hidden in the lexer
>>to finish the task.
>
>Hmm, IMHO this regexp is not enough because this would also match:
>
>"bla bla bla L"
[ ... ]
it would not match "blah L" because the string "blah L" would be
matched first by the string analyzer, and the L analyzer would not
have the opportunity to see the L inside the string.
The extensions work like this:
1) Does the regexp "L\\s\"" match
2) If yes, run some code,
Thus, in your code, you can possibly use the lexical analyzer
recursively on (+1 (point)) to slurp the string. If that works, then
you are all set, if it fails, return no token, and the L is turned
into a symbol, and the string a string, as opposed to a single wide
string.
Eric
--
Eric Ludlam: zappo@..., eric@...
Home: http://www.ludlam.net Siege: http://www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org
|