Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

javacc question

Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

Did anybody write java parsers and tree generators? I tried java cc but got no success with it.

My purpose is somehow deeper though. I am trying to develop java to abc byte code compiller.

here is active script 3.0 compiler
source code. And I was thinking to myself it would be great to write code on java and produce SWF flash. Is not it cool idea?

Active script 3.0 and java are very alike. Their byte code formats are alike as well. So there are lot of of options:

one is to replace java specific constructions to those of AS 3.0

second is to transform class byte code to abc byte code

third is most optimal (from my point of view) generate evaluation tree for java source, trans form it to the tree Macromedia's asc compiler user to traverse and compile using old good flex compiler. That is what i am trying to do.

So the first step is easy: get evaluation tree for java source. Can anybody share some practices regarding parser generator using javacc or antlr?


Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
Garden Master Course kickstarter
    Bookmark Topic Watch Topic
  • New Topic