[antlr-interest] proplem with tokens value (C target)

Юрушкин Михаил yurushkin at rambler.ru
Sun Aug 30 12:33:21 PDT 2009


there is following problem. I have made simple grammar, generated c. file

But when I try to get "tokens text", the error is occured. here is a code  
of getters:

  #define getTokenText(token) string((char*)token->tokText.chars)
  #define getTokenInteger(token) atoi((char*)token->tokText.chars)

I think, that tokens aren't initialized correctly, but what I did wrong...

-- 
Написано в почтовом клиенте браузера Opera: http://www.opera.com/mail/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090830/ab1e2e80/attachment.html 


More information about the antlr-interest mailing list