Hi,

I need to construct a program that will translate UML models specified 
in XMI into language 'X'.  I already have an ANTLR-based parser for 
language X that generates a CommonTree as an intermediate form.  I also 
have a TreeWalker  that uses StringTemplate to emit valid X given an AST 
in this intermediate form.  I currently use these two components to 
implement a pretty-printer for language X.  I was thinking that I could 
implement an ANTLR parser that would take XMI models as input and 
generate some (different) intermediate form AST.   I would then 
implement a TreeWalker to convert this AST into the intermediate form 
AST for language X.  This would allow me to use my existing emitter to 
output the model in language X.

1) Does this sound like a reasonable strategy?
2) Is anyone aware of an existing ANLTR3 grammar for XMI?
3) Is there a better way?

Thanks,
Cameron.

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.


Reply via email to