Good news on the Ruby parser. I've seen it requested a few times.
Code tags are useful for code that happens outside the bounds of a
typical definition, as in a scripting language such as Emacs Lisp.
It will give that code some handle to be accessed.
Parsing code within a method definition currently has the one
advantage of providing real-time syntax checking if you enable
'global-semantic-show-unmatched-syntax-mode'. That's about it though.
David has a full Java parser too. He might have good ideas.
In the long term, I'd like semantic to provide syntax highlighting,
and provide local context parsing through code parsing mechanisms.
This would greatly improve the accuracy of those features. There are
a lot of other things to get flushed out first though.
Probably the most time-consuming part of supporting a language after
writing the parser is finding all the overload methods that need to be
written. Things like M-x semantic-test-all-format-tag-functions and
M-x semantic-analyze-current-context are good lead ins to finding
those. Those are items that give the best feel to the different tools
in your specialized language.
If you would like your ruby parser in the CEDET contrib directory, let
>>> Daniel Debertin <airboss+cedet@...> seems to think that:
>I've been working on-and-off on a Wisent Ruby grammar for Semantic,
>mostly for use with ECB. In looking at the python grammar included
>with Semantic (wisent-python.wy), there is basic support for mapping
>the language's infrastructure (classes, methods, and so on), but the
>rest of python's constructs (conditionals, loops, etc.) are just
>caught by emitting CODE-TAGs, which AFAICT aren't really used for
>Writing a basic grammar for Ruby was quite simple; I just added the
>relevant tags for classes, modules and methods and they started
>popping up automagically in ECB's methods window. Writing a grammar
>that can parse the *entire* language would take quite a bit more time
>and effort. What are the benefits (if any) of doing this?
>Dan Debertin |
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>cedet-semantic mailing list
Eric Ludlam: zappo@..., eric@...
Home: http://www.ludlam.net Siege: http://www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org