Sergei Lodyagin writes:
 > Are there such tools ?

Yep. There is aflex/ayacc or Ted Denisson OpenToken.

     http://www.telepath.com/dennison/Ted/OpenToken/OpenToken.html

I don't have aflex/ayacc pointer at hand.

Pascal.

--

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"