"david.lloyd(a)jboss.com" wrote :
| Manifests (even OSGi Manifests) are dead simple to parse - you could just do it with
plain regular expressions even - and the metadata model can't be all that complex. I
don't see anything in the OSGi spec to make be believe otherwise, in any case.
|
If it's that simple I would be more than happy if you could do it. ;-)
I don't doubt it's not doable via regexp (I did part of my BSc thesis on them
;-),
but I very much doubt it's gonna be nice at the end.
Hence javacc or possibly antlr usage -- keeping the parsing in rule files.
The stuff that get's ugly is imports/exports.
With its attributes, =, :=, :, [, ", ... details.
I never know which goes where. :-)
The metadata should be simple,
it just takes some effort to go from feature to feature
and create proper parsing --> osgi md --> jboss cl md tests.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203332#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...