>>> ashu@... seems to think that:
>It seems like there is a bug in the function "semantic-token-type" in
>the file semantic-util.el.
>The bug appears when one is trying to call
>semantic-find-nonterminals-by-type which in turn calls
>semantic-find-nonterminals-by-function, which calls semantic-token-type
>and things get messed up.
>In particular, defunning semantic-token-type to
> (nth 1 token)
>fixes the problem.
>Let me know if I am wrong, or if the bug should be fixed in some other
[ ... ]
In semantic 1.4, "type" refers to the type of the symbol, such as
"int" or "void". The 1st slot in the token list is the "token of the
token". A poor naming choice to be sure. A token (tag) should have
( "NAME" TOKEN "TYPE" ... )
Where NAME is the name, TOKEN is something like 'function or
'variable, and TYPE is the type of the found symbol, like void, int,
If I knew better what you were expecting from `semantic-token-type',
I may be able to help, but I suspect you really want
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