Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Creating a project that supply common terminals?
Creating a project that supply common terminals? [message #894765] Tue, 10 July 2012 08:46 Go to next message
Eclipse UserFriend
Hi, I would like to create a common project where I can put common terminals and maybe some data types.

I think that this kind of project should be simple and don't need any UI project.

So, what fragments could I safely remove from the generated .mwe2 file ?


*update:

I've got this error in my project that only contains terminals and one data type:
6171 [main] ERROR enerator.CompositeGeneratorFragment  - You may not generate an ANTLR parser for a grammar without production rules.
java.lang.IllegalArgumentException: You may not generate an ANTLR parser for a grammar without production rules.
	at org.eclipse.xtext.generator.parser.antlr.AbstractAntlrGeneratorFragment.generate(AbstractAntlrGeneratorFragment.java:89)
	at org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment.generate(XtextAntlrGeneratorFragment.java:41)
	at org.eclipse.xtext.generator.CompositeGeneratorFragment.generate(CompositeGeneratorFragment.java:92)
	at org.eclipse.xtext.generator.LanguageConfig.generate(LanguageConfig.java:113)
	at org.eclipse.xtext.generator.Generator.generate(Generator.java:361)
	at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:128)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)



thanks,

Cristiano

[Updated on: Tue, 10 July 2012 09:06] by Moderator

Re: Creating a project that supply common terminals? [message #896449 is a reply to message #894765] Wed, 18 July 2012 08:17 Go to previous message
Eclipse UserFriend
I'd expect you don't need to generate anything for that grammar. Maybe
the Ecore stuff, if you want common datatypes. But that can also be
maintained manually, and you might have to manually implement value
converters anyway.

For our similar grammars 'Terminals' and 'Xtype', we don't generate
anything.

Am 10.07.12 14:46, schrieb Cristiano Gaviao:
> Hi, I would like to create a common project where I can put common
> terminals and maybe some data types.
>
> I think that this kind of project should be simple and don't need any UI
> project.
>
> So, what fragments could I safely remove from the generated .mwe2 file ?
>
>
> thanks,
>
> Cristiano


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Previous Topic:Opening my binary encoded files using XtextEditor
Next Topic:Building Xtext 2.3 projects with Maven
Goto Forum:
  


Current Time: Fri Jul 04 20:46:16 EDT 2025

Powered by FUDForum. Page generated in 0.02490 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top