[Uml-devel] [CVS] update:
Andrew Sutton
ansutton at kent.edu
Sat Sep 21 16:00:03 UTC 2002
> My god... I know a bit about parsing, but never worked with those flex
> build parser systems... this is not within my capabilities... without help
> I will not be able to contribute a Java parser... Java is rather similar to
> C++ so I can not be very difficult... Any parser builders around?
>
> Jonathan, I guess I was a bit too enthousiastic about UML's Java
> capabilities... please remove the filter patch again :( There is seems to
> be no code to parse Java... (which is probably why I could not find it ;)
its not too hard :) you should be able to get the general gist of flex/bison
(lex/yacc) from various examples floating around. there's some pretty good
documentation and tutorials. if worse comes to worse, you could get the
o'reilly book on lex/yacc (which applies to flex bison as well).
of course, the best parser product around is probably antlr. its written in
java but can generate C++ lexers and parsers. you just have to link against
the resultant library. IIRC the antlr parser comes with a java grammar as an
example. it might even come with a C# example - if, god forbid :) you want to
offer a C# filter. hehe.
andy
More information about the umbrello-devel
mailing list