[Monodevelop-devel] Parser Overview
Christian Hergert
christian.hergert at gmail.com
Mon Sep 29 19:29:20 EDT 2008
Ok, so after some further exploration, I think I understand the
ICompilationUnit stuff. I was really hoping that the interface would expose
information via IEnumerable's so that I could maintain data in my own format
and yield requested data at will. It also seems that the ICompilationUnit
is very much geared towards c#/.net. I'll just map things the best I can.
Thanks for the info!
-- Christian
On Mon, Sep 29, 2008 at 3:38 PM, Christian Hergert <
christian.hergert at gmail.com> wrote:
> I have a class that extends ParsedDocument. Do references inside that
> class get persisted to the parser database? Or is this perhaps something
> that i should have encapsulated in an ICompilationUnit.
>
> As an example ..
>
> PythonParsedDocument : ParsedDocument {
> PythonModule module; // hoping this gets persisted
> }
>
> -- Christian
>
>
> On Mon, Sep 29, 2008 at 4:52 AM, Mike Krüger <mkrueger at novell.com> wrote:
>
>> Hi
>>
>> I think it works almost the same way than before. The language bindings
>> should provide the parser for class browser/quick navigation. And they
>> should do the code completion (there is a class completiontexteditor
>> extension which makes at a bit easier to handle different completion
>> cases). But basically the language bindings extend the text editor with
>> completion.
>>
>> See the CSharpLanguageBinding for details. Tags are just a special type
>> of comments. I'm not really happy with the name. (Tag comments are
>> 'TODO', 'HACK' etc.)
>>
>> The thing that's really interresting for code completion is the
>> ICompilationUnit inside the ParsedDocument. This contains all
>> information.
>>
>> Regards
>> Mike
>>
>>
>> > Does anyone have a short overview of how the parser system works now?
>> > The optimal interactions between the parser, resolvers, and completion
>> > system seems a bit tough to grasp which is compounded by the lack of
>> > interface documentation.
>> >
>> > I'm trying to put together code completion for my cPython addin, but I'm
>> > unsure which project I should look at for an ideal example. Things
>> > appear to be in a sort of flux.
>> >
>> > Of particular interest is how the parser should interact with parsed
>> > documents, what Tag's are, and how the gui completion should interact
>> > with that.
>> >
>> > Thanks!
>> >
>> > -- Christian
>> >
>> > _______________________________________________
>> > Monodevelop-devel-list mailing list
>> > Monodevelop-devel-list at lists.ximian.com
>> > http://lists.ximian.com/mailman/listinfo/monodevelop-devel-list
>>
>> _______________________________________________
>> Monodevelop-devel-list mailing list
>> Monodevelop-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monodevelop-devel-list
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-devel-list/attachments/20080929/eb83afa1/attachment.html
More information about the Monodevelop-devel-list
mailing list