I am trying to convert the grammer to use generics. Unfortunately, our
javacc turns out 1.4 java. That's mostly ok except for the places where
the grammar spits out its own internal machinery. Probably upgrading our
version of javacc is a good long-term solution but I don't want to pull
on that ball of yarn right now if I don't have to. So I thought I could
add another regular expression filter to the grammar building target.
Specifically, I want to perform the following transformations on the
generated SQLParser file:
java.util.Vector -> java.util.Vector<Object>
java.util.Enumeration -> java.util.Enumeration<Object>
I'm having difficulty tracking down the regular expression syntax used
by the ant replaceregexp task. Would appreciate any pointers.
Thanks,
-Rick