[antlr-interest] C++ Target - PythonTokenStream.java
kjam
pohilets at gmail.com
Tue Aug 21 03:44:22 PDT 2012
Hi,
I'm trying to implement parser for custom indentation-sensitive language
(like Python) with C++ target.
AFAICS, for Java runtime, TokeSource interface is a more convenient point to
patch stream of tokens than TokenStream. Also comment in UserTraints.hpp in
Gokul's composite_java example also suggests to hook TokenSource. Is this
correct? Why in PythonTokenStream.java TokenStream was hooked, but not the
TokenSource?
--
View this message in context: http://antlr.1301665.n2.nabble.com/C-Target-PythonTokenStream-java-tp7578601.html
Sent from the ANTLR mailing list archive at Nabble.com.
More information about the antlr-interest
mailing list