experience with jack, a yacc-like tool for java

Dan Kelley <dan.kelley@dal.ca>
7 Feb 1997 23:34:19 -0500

          From comp.compilers

Related articles
is there a yacc that outputs Java instead of C/C++? dan.kelley@dal.ca (Dan Kelley) (1997-02-02)
experience with jack, a yacc-like tool for java dan.kelley@dal.ca (Dan Kelley) (1997-02-07)
Re: experience with jack, a yacc-like tool for java gfarrow@shlden.com (1997-02-08)
Re: experience with jack, a yacc-like tool for java sreeni@csc.albany.edu (1997-02-11)
Re: experience with jack, a yacc-like tool for java nshaylor@tcp.co.uk (1997-02-20)
Re: experience with jack, a yacc-like tool for java sami@microsoft.com (Sam Inala) (1997-02-27)
| List of all articles for this month |

From: Dan Kelley <dan.kelley@dal.ca>
Newsgroups: comp.compilers,comp.lang.java.misc
Date: 7 Feb 1997 23:34:19 -0500
Organization: ISINet, Nova Scotia
References: 97-02-013
Keywords: yacc, Java

A few days ago I posted to this group asking whether there was a
yacc-like tool that created java code.


Several folks mentioned that I should try 'Jack', at
  http://www.suntest.com/Jack/index.html
while others suggested I try CUP, at
  http://www.cc.gatech.edu/gvu/people/Faculty/hudson/java_cup/home.html


I'm writing this note to let other folks know of the existence of
these programs.


As to my personal experience with them, I have not had the chance to
try CUP yet. I decided to try Jack first, since, coming from Sun
Microsystems, I figured it might be more stable than CUP.
Unfortunately, I couldn't get Jack to work on my machine, on the
examples in the 'examples' directory. For anyone who is interested, I
paste below my signature line a script of what I tried. Maybe my java
is installed wrongly -- this is a bit of a dead issue because our
system managers are too busy to fiddle with it. I wish good luck to
others who try this.


--
Dan E. Kelley internet: mailto:Dan.Kelley@Dal.CA
Oceanography Department phone: (902)494-1694
Dalhousie University fax: (902)494-2885
Halifax, NS, CANADA, B3H 4J1 http://www.phys.ocean.dal.ca/~kelley


... here is the log of my unsuccessful attempt to compile a jack pgm:


        kelley@Kelley$ java -version
        java version "1.0.1"




        kelley@Kelley$ jack Simple1.jack
        Jack Version 0.5. Copyright (c) 1996 Sun Microsystems Inc.
        (type "jack" with no arguments for help)


        Reading from file Simple1.jack . . .
        java.lang.NoSuchMethodError: java.lang.Long: method
toHexString(J)Ljava/lang/String; not found
                        at COM.sun.labs.jack.LexGen.build(LexGen.java:155)
                        at
COM.sun.labs.jack.Jack_the_Parser_Generator_Internals.db_process(Jack_the_Parser_Generator_Internals.java:482)
                        at
COM.sun.labs.jack.Jack_the_Parser_Generator.jack_input(Jack_the_Parser_Generator.java:217)
                        at COM.sun.labs.jack.Main.main(Main.java:325)
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.