Re: Java Compiler Documentation

Cathal McCarron <br688@city.ac.uk>
27 Jul 1998 23:16:10 -0400

          From comp.compilers

Related articles
Java Compiler Documentation K.Benefield@city.ac.uk (Kerry Benefield) (1998-07-26)
Re: Java Compiler Documentation thetick@magelang.com (Scott Stanchfield) (1998-07-26)
Re: Java Compiler Documentation br688@city.ac.uk (Cathal McCarron) (1998-07-27)
Re: Java Compiler Documentation jamz@my-dejanews.com (1998-07-28)
| List of all articles for this month |

From: Cathal McCarron <br688@city.ac.uk>
Newsgroups: comp.compilers
Date: 27 Jul 1998 23:16:10 -0400
Organization: Posted via ULCC Internet Services
References: 98-07-185 98-07-190
Keywords: Java

> >For my project towards an MSc I'm taking I have to modify the Java
> >compiler to introduce a form of assertion support.


> Be careful of licensing issues here -- did you get the javac compiler
> source from Sun? The source license is pretty restrictive. AFAIK,
> there are no docs on it.


The sources are available at my college locally. Sun allow modifications
for educational / research purposes - no commercial stuff without prior
approval.


> Pre-processors are used quite a bit for this sort of thing -- also,
> saying that you're modifying the compiler to support a superset of
> Java can leave a very bad taste in many people's mouths -- this is
> more like changing the Java language, which is a big no-no.


I'm going to do it via a specialised form of comment ie


/*+ assertion comment


so any programs can still be put through the normal Java compiler.


> BTW: There's a java 1.1 grammar (with a few minor bugs) for ANTLR 2.x at
> http:www.antlr.org which might provide a decent starting point...)


Thanks for your help!


Cathal
--


Post a followup to this message

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