[cfe-dev] Value (text) of a token

steve naroff snaroff at apple.com
Fri Nov 14 08:16:59 PST 2008


Hi Andrew,

I believe Token::getName() or tok::getTokenName() is what you are  
looking for...

snaroff

On Nov 14, 2008, at 11:09 AM, Andrew Sutton wrote:

> Is there any way to get the text of a token, regardless of its kind?  
> Like '>' or '=', or 'Foo' if Foo is an identifier.
>
> Andrew Sutton
> andrew.n.sutton at gmail.com
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20081114/586495ae/attachment.html>


More information about the cfe-dev mailing list