Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Java Language Parser

by enoch (Chaplain)
on Apr 07, 2003 at 17:04 UTC ( #248675=perlquestion: print w/replies, xml ) Need Help??
enoch has asked for the wisdom of the Perl Monks concerning the following question:

A friend of mine recently asked me if there was a Java language parser in Perl. I thought to myself "sure there is." "After all, there is Verilog::Parser, C::Sharp, SQL::Parser... There has got to be a Java language parser."

My first CPAN search turned up Java::JVM::Classfile, which will parse the byte code. Not exactly what he wanted, but I was on the right track. So, I changed my search terms slightly and looked again. Nothing. So, I turned to the Monastery and did some Super Searching; and again, I come up with nothing.

I find that odd. There has to be one out there, yes? Does any monk know of a parser for Java?

enoch

Replies are listed 'Best First'.
Re: Java Language Parser
by diotalevi (Canon) on Apr 07, 2003 at 17:22 UTC

    I started writing one once but stopped for lack of interest. Here's where I left off. (which is actually very, very early in the process). Sun publishes the Java Language Specification which is the source for this snippet of code.

Re: Java Language Parser
by broquaint (Abbot) on Apr 07, 2003 at 17:13 UTC
    Not specifically geared towards parsing Java but have you checked out Inline::Java?
    HTH

    _________
    broquaint

Re: Java Language Parser
by crenz (Priest) on Apr 07, 2003 at 22:16 UTC

    Looks like the perfect job for Perl 6 to me :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://248675]
Approved by RMGir
help
Chatterbox?
[moritz]: depends on what you mean by "most stuff"
[1nickt]: I am sure I don't know about most of the stuff that is no longer controlled by humans. I do know that it's past the point of determining consumer pricing and into things that can kill me with blunt force!
[holli]: but is this really a problem 1nickt? Nobody knows how your human taxi drivers brain works either
[holli]: at least for cars, if the ai works better than a human on average, by all means let the machines drive

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2017-11-21 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (301 votes). Check out past polls.

    Notices?