Thx for help, trouble fixed. Dunno that caused because i've replased "ANTLR_USE_NAMESPACE(antlr)RefToken" with "string&" in my semantic functions or used SOME_TOKEN->getText instead "SOME_TOKEN.get()->getText" or used static ANTLR build or got some XP in voodoo magic... mailto:a_day at list.ru