Re: Ruby parser

Shigio YAMAGUCHI <[email protected]> Thu, 9 Jan 2014 06:55:39 +0900
Newsgroups gmane.comp.gnu.global.general
Message-ID <CADJmJYp8P9v3EsgDWb5WqAgRMi4Yzg+4VB2p7NsUoktftJvhew@mail.gmail.com>
Hi,
You need to write a plug-in parser for ruby.
Probably, 'plugin-factory/README' in the global-6.2.9 package
is help for you. The ability to understand class structures
is not implemented yet.

Good luck!
Shigio

2014/1/9 Perry Smith <[email protected]>:
> Hi,
>
> I would like to create a utility that parses Ruby files and creates both the reference and definition (and any other pieces) for a global database.  i.e. I basically want to create a gtags program for Ruby.
>
> I don't know how the integration will work because I will need key pieces from Ruby (Matz' implementation) but we can figure that out later.
>
> Is there a good reference that tells me how to create the three files that gtags creates?  It is also not clear what types of relationships can be represented in these files.  I see on the ToDo list to add the ability to understand class structures.  Is that being done?  Or are there some well thought out and detailed plans on how to do it?  Ruby could take advantage of that to some degree.
>
> I'm not need help from this list for the Ruby part of the puzzle... just the Global parts.  How are the three files created?  etc.
>
> Thank you,
> Perry Smith
>
>
> _______________________________________________
> Help-global mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/help-global
>



-- 
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3