| New installation doesn't create Ast package [message #577143] |
Sat, 26 December 2009 16:09  |
Rosco Messages: 12 Registered: December 2009 |
Junior Member |
|
|
Hi All,
I'm a newbie to Eclipse and IMP, thought I'd give it a try to implement an IDE for NBC, a language for the LEGO Mindstorms NXT brick, see: http://bricxcc.sourceforge.net/nbc/
This is mostly an exercise in learning the tools, but I don't seem to be able to get IMP up and running.
I've installed Galileo 3.5.1, IMP 0.1.88, LPG 2.0.17 and Polyglot 2.4.0, and I'm trying to follow the user guide. I created a new plugin, added a Prgramming Languge Descriptor, all seems to work fine, but when I create a LPG Grammar with Parser Wrapper for IMP, It creates skeleton .g and .gi files, NbcASTNodeLocater and NbcParseController classes, but no Ast package, so the classes don't work. In the Eclipse error log it has errors like:
Failed to create extension: astAdapter
org.eclipse.imp.utils.ExtensionException: No such language service extension point defined: org.eclipse.imp.runtime.astAdapter
at org.eclipse.imp.utils.ExtensionFactory.createServiceExtensio nForPlugin(ExtensionFactory.java:115)
at org.eclipse.imp.utils.ExtensionFactory.createServiceExtensio nForPlugin(ExtensionFactory.java:156)
at org.eclipse.imp.utils.ExtensionFactory.createServiceExtensio n(ExtensionFactory.java:53)
....
and
An internal error occurred during: "LPG ParserScheduler for NbcParser.g".
java.lang.NullPointerException
at org.eclipse.imp.parser.SimpleLPGParseController.isKeyword(Si mpleLPGParseController.java:186)
at org.eclipse.imp.lpg.editor.TokenColorer.getColoring(TokenCol orer.java:58)
...
and
Error running parser for language LPG and input NbcParser.g:
java.lang.NullPointerException
at org.eclipse.core.internal.runtime.Activator.getURLConverter( Activator.java:313)
at org.eclipse.core.runtime.FileLocator.toFileURL(FileLocator.j ava:205)
at org.eclipse.imp.lpg.builder.LPGBuilder.getDefaultIncludePath (LPGBuilder.java:392)
...
Note, I had to import lpg.generator.win32_x86 into my workspace to get the lpgexe to work, but it now seems to work fine, I can run it from the command line. Running it on the skeleton .g & .gi files creates a whole bunch of classes, but still no Ast package.
Can anyone point me in the right direction?
Thanks in advance
ROSCO
|
|
|