[antlr-interest] How to write '\v' in antlr grammar?
Ric Klaren
klaren at cs.utwente.nl
Mon Mar 31 01:18:26 PST 2003
On Fri, Mar 28, 2003 at 04:38:41PM -0500, Albert Huh wrote:
> maybe it's a bug in the antlr grammar?? the antlr compiler is croaking on
> the '\v'. the antlr compiler is in java. maybe you could try '\\v'
> instead?? i'm just guessing here.
Seems \v is not available in java (after quick check of the spec) In C/C++
it's valid. Not 100% sure if '\\v' will work might (my guess is no) try
'\013' in stead which should be equivalent to \v.
I added \v to the action lexer of C++ mode, where it will make sense.
(meaning that in the next release it's possible to use '\v' in actions)
Cheers,
Ric
--
-----+++++*****************************************************+++++++++-------
---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722 ----
-----+++++*****************************************************+++++++++-------
Chaos is found in greatest abundance wherever order is being sought.
--- Terry Pratchet
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list