Kim Burchett <[EMAIL PROTECTED]> writes:
> I've written a simple macro processor for Java which uses
> syntax like @Foo(arg1, arg2) to instantiate an instance
> of the class macros.Foo, pass "arg1, arg2" to a replace()
> method, and insert the result into the resulting source file.
> Because it's so general (the Foo macro can write to files,
> whatever), you could use it to do something like this --
> you'd just make your "macro" do its work and then return ""
> as its result.
For something like the @todo tag, this would probably work (and be
faster than a full-fledged parser). For other javadoc stuff, this
isn't sufficient since you have to:
1. Know what the comment is attached to.
2. Generate comments even for uncommented methods/fields/etc.
--
Geoff Berry