Making A Java Compiler... In Java

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2004
Posts: 609
Reputation: freesoft_2000 is an unknown quantity at this point 
Solved Threads: 8
freesoft_2000 freesoft_2000 is offline Offline
Practically a Master Poster

Re: Making A Java Compiler... In Java

 
0
  #11
Aug 5th, 2005
Hi everyone,

jwenting is right. Plug in ant as its more useful and easier and to build an ide is not an easy task. But if you want to still pursue it read up about pipe streams in java. You will also have to use window listeners and not set a default closing for the JFrame.

Richard West
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond

Tell me what type of software do you like and what would you pay for it

http://www.daniweb.com/techtalkforums/thread19660.html
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Making A Java Compiler... In Java

 
0
  #12
Aug 5th, 2005
Of course what he's doing/planning isn't really to make a compiler but to call an external compiler
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Re: Making A Java Compiler... In Java

 
0
  #13
Aug 5th, 2005
true, but can you help me with what i have so far?

thanx.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Making A Java Compiler... In Java

 
0
  #14
Aug 11th, 2005
Maybe a bit late, but here's a new article on java.net that does what you're looking for:
http://weblogs.java.net/blog/kirillc...ction_and.html

The last part is irrelevant as it deals with some obscure XML generation from Java objects, the first part deals with dynamic compilation and classloading.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 1
Reputation: nmkarthik is an unknown quantity at this point 
Solved Threads: 0
nmkarthik nmkarthik is offline Offline
Newbie Poster

Re: Making A Java Compiler... In Java

 
0
  #15
Jan 21st, 2006
Dear Ghost,

I want to make a Java Compiler in Java.

Is it possible to create a Java compiler? Could you

make a Notepad-like application, save the code as

a .java file, compile it into a .class file, and run it?

Basically, I want to combine Notepad and Command

Prompt. I think u have that Code. Please send that

full coding please. Im waiting for ur seen reply.

Thanks in advanced for your help
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 609
Reputation: freesoft_2000 is an unknown quantity at this point 
Solved Threads: 8
freesoft_2000 freesoft_2000 is offline Offline
Practically a Master Poster

Re: Making A Java Compiler... In Java

 
0
  #16
Jan 24th, 2006
Hi everyone,

Originally Posted by nmkarthik
Is it possible to create a Java compiler? Could you
make a Notepad-like application, save the code as
a .java file, compile it into a .class file, and run it?
It seems you want to create an ide and not a comppiler but the answer is that its possible

Originally Posted by nmkarthik
Basically, I want to combine Notepad and Command Prompt.
Duly noted

Originally Posted by nmkarthik
I think u have that Code. Please send that full coding please
I doubt he or anyone including myself will send the code.
What you can do is create a topic on creatig an ide by yourself and i'm sure the others will walk you through it if you have specific questions

Here are some tips for you
Runtime
JTextArea
Pipe And Streams

Richard West
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond

Tell me what type of software do you like and what would you pay for it

http://www.daniweb.com/techtalkforums/thread19660.html
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Re: Making A Java Compiler... In Java

 
0
  #17
Jan 24th, 2006
I'll help you with your program, but you need to show some effort! At least create the GUI and TRY to send commands to command prompt. Then I'll be glad to help.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5
Reputation: mperkins07 is an unknown quantity at this point 
Solved Threads: 0
mperkins07 mperkins07 is offline Offline
Newbie Poster

Re: Making A Java Compiler... In Java

 
0
  #18
Apr 30th, 2006
Can you help me wlth the following work?:
This sample program shows how to print the current month, now using the "Calendar" object (instead of the Date object which has been deprecated, meaning it has been slated for removal from the language).
  1. // Program prints the current month
  2.  
  3. import java.util.Calendar;
  4.  
  5. public class ShowToday {
  6. static String[] monthArray = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
  7.  
  8. public static void main(String[] args) {
  9. Calendar rightNow = Calendar.getInstance();
  10. int month = rightNow.get( Calendar.MONTH );
  11. // This will be a number from 0 to 11, representing January to December
  12. System.out.println("month: " + month );
  13. // Using the above array, this will print "Jan" thru "Dec"
  14. System.out.println("month: " + monthArray[month] );
  15. }
  16. }
Last edited by cscgal; Apr 30th, 2006 at 8:59 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 1
Reputation: nenbe is an unknown quantity at this point 
Solved Threads: 0
nenbe nenbe is offline Offline
Newbie Poster
 
0
  #19
Oct 8th, 2009
good day to all.
i stumble upon this site because i want to know how to make an interpreter for our project.
we are using jflex as our lexical analyzer.
may i know what's the next step in doing?
thanks
Reply With Quote Quick reply to this message  
Reply

Message:




Views: 9537 | Replies: 18
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC