Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [imp-dev] Problems with custom parser

Hi Anatoly,

The first thing to do is to start the ErrorLog viewer (Using
Window->Show View). The reason for the failure is (probably) logged
there. Make sure to browse through the entire stack trace to find the
original cause.

Things that might have gone wrong are:
  - you have no zero argument constructor for the class that implement
IParseController
  - the extension points to a class that does not exist
  - the language name in the parser extension is different from the
language you registered with the extension
  - ...?

Cheers,

Jurgen

On Sun, May 2, 2010 at 8:50 PM, Anatoly Kondratyev
<anatoly.kondratyev@xxxxxxxxxxxxxx> wrote:
> Hello everybody,
> I hope this mailing list isn't already dead=) I tried to implement parser
> generated by ANTLR in IMP, so I implemented some Interfaces, as user's guide
> says: IParseController, ISourcePositionLocator, and some else, then I
> decided to add token coloring and check, do parser works, or not. But when I
> tried to open file with my language's extension, I run into error
> window: "Unable to instantiate parser for language '%LangName%';
> parser-related services will be disabled."
> I tried to set breakpoints at the IParseController's constructor, but it
> looks like IPaseController doesn't even invoked.
>
> Any suggestions? How can I find more information on such error, or, may be,
> what class invokes IParseController?
> --
> Kind regards,
> Anatoly Kondratyev.
>
> _______________________________________________
> imp-dev mailing list
> imp-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/imp-dev
>
>



-- 
Jurgen Vinju
- Centrum Wiskunde & Informatica - SEN1
- INRIA Lille - ATEAMS
- Universiteit van Amsterdam

  www: http://jurgen.vinju.org,
http://www.rascal-mpl.nl,http://twitter.com/jurgenvinju
skype: jurgen.vinju


Back to the top