Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Execute rebol from java

From: nitsch-lists:netcologne at: 8-Jan-2002 13:15

RE: [REBOL] Re: Execute rebol from java Hi Anton [arolls--idatam--com--au] wrote:
> Volker, > > I tried out javacc today, and tested it on a simple > ..c file, which seemed to do something (not sure what:). > But then I realised that what I wanted was compose-like > functionality in java. >
darkly remembering a demo which added some demo-syntax to java, outputting "clean java". done with a tool packed with javacc called jjtree and a grammar for java. then there is scheme and python both compiling to java-bytecode. And Freebell on the FX5 -site. Maybe you can motivate Frank Sievertsen & RT to allow it / make it usable?
> So I am thinking I will make a java class to output a > file, then javac it, and run the new class with > Class.forName("new.class");. > I would prefer to do this in memory somehow, too. > And if someone else has done this already, or if javac > can help this kind of thing. >
hum. you need javac internal for speed and ClassLoader to allow for multiple classes of the same name (like multiple times the same applet loaded). if i now could remember where i have that prototype stuff, and how to use/configure.. ;-)
> This isn't /really/ important... I just won't feel > 100% healthy programming in java until I can do composed > code like rebol can... :) >
Well, then it needs smarter syntax .I prefer the original. *g* But if you need to use/learn java, its a funny way. specially if the composing can be done with Runtime.exec(uting) rebol :)
> Of course, once I have a class that can execute > composed java code (in a clean, simple way), I will be > so much more powerful. ;) >
Hm, feedback to polish it? on or off list? the composing part here? ;-)
> Anton. > > > > I was advised by a more experienced programmer here on > > > all the benefits of adding three more classes, when all I > > > wanted to do was navigate a simple array/block with a known > > > structure and get some strings out. > > > > I am going to go looking for a nice parser for java (if there is > > > one). > > > javacc, coco are compiler-compilers, similar to parse. > > also there are regular-expressions somewhere near > > the jpython (and inbuild in 1.4 or that?). > > > > Anton. > > > > -Volker