Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #24387

Re: How to scan Java source texts?

From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: How to scan Java source texts?
Date 2013-06-12 12:55 -0400
Organization A noiseless patient Spider
Message-ID <kpa8q5$74i$1@dont-email.me> (permalink)
References (3 earlier) <kp8kpn$fk1$1@dont-email.me> <kp99n0$1hr$1@dont-email.me> <kp9ac5$46e$1@dont-email.me> <kpa6tn$rlv$1@dont-email.me> <Scanner-20130612184004@ram.dialup.fu-berlin.de>

Show all headers | View raw


On 06/12/2013 12:44 PM, Stefan Ram wrote:
> Jeff Higgins <jeff@invalid.invalid> writes:
>> I don't see a way to do what you want using the existing API.
>
>    Thanks for your remarks!, which helped me
>    to find out that it can be done, once one
>    is willing to use the »com.sun....«-classes,
>    such as »Scanner«. »tools.jar« needs to be in
>    the classpath for this.
>
>    Now, there indeed is the risk that these classes
>    will change in future JDK versions. But still
>    I estimate them to be more stable than some
>    third-party libraries. For example, for the same
>    purpose I used a third-party program before that
>    now has not been adapted to Java >= 1.5, so that I
>    now needed to find some means to accomplish this
>    for Java >= 1.5.
>
Well, right there under my nose! :-O :-))
It was fun building my own compiler though!
Maybe a new language to go with it Jeffa!

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-11 16:40 -0400
  Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-11 22:07 -0400
    Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-12 04:04 -0400
      Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-12 04:15 -0400
        Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-12 12:22 -0400
          Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-12 12:55 -0400
          Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-12 14:38 -0400
            Re: How to scan Java source texts? Jeff Higgins <jeff@invalid.invalid> - 2013-06-12 15:38 -0400

csiph-web