Home » Modeling » TMF (Xtext) » Does xbase work?
Does xbase work? [message #514799] |
Tue, 16 February 2010 06:50  |
Eclipse User |
|
|
|
I found xbase in the cvs repository.
I wonder if that is a good example or if it is just
dead code. There is a file called
org.eclipse.xtext.xbase/src/org/eclipse/xtext/xbase/example. xbase_example
which has some errors in the xbase editor.
What's going wrong here?
Michael
--
Michael Scharf
Wind River Systems GmbH
http://www.WindRiver.com
http://MichaelScharf.blogspot.com/
|
|
| | | |
Re: Does xbase work? [message #649279 is a reply to message #514799] |
Tue, 18 January 2011 09:46   |
Eclipse User |
|
|
|
I m trying to get Xbase running by checking out xtext.xbase and xtext.common.types form the cvs repository. But if i run the xbase mw2, i get rule errors ...
7689 [main] INFO ipse.xtext.generator.LanguageConfig - generating infrastructure for org.eclipse.xtext.xbase.Xpression with fragments : ImplicitRuntimeFragment, ImplicitUiFragment, GrammarAccessFragment, ParseTreeConstructorFragment, XtextAntlrGeneratorFragment, JavaBasedContentAssistFragment
error(211): ../org.eclipse.xtext.xbase/src-gen/org/eclipse/xtext/xbase/parser/antlr/internal/InternalXpression.g:92:1: [fatal] rule ruleXExpression has non-LL(*) decision due to recursive rule invocations reachable from alts 1,2,6. Resolve by left-factoring or using syntactic predicates or using backtrack=true option.
warning(200): ../org.eclipse.xtext.xbase/src-gen/org/eclipse/xtext/xbase/parser/antlr/internal/InternalXpression.g:92:1: Decision can match input such as "'('" using multiple alternatives: 1, 2, 6
As a result, alternative(s) 2,6 were disabled for that input
warning(200): ../org.eclipse.xtext.xbase/src-gen/org/eclipse/xtext/xbase/parser/antlr/internal/InternalXpression.g:1864:2: Decision can match input such as "'else'" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
error(211): ../org.eclipse.xtext.xbase/src-gen/org/eclipse/xtext/xbase/parser/antlr/internal/InternalXpression.g:3025:1: [fatal] rule ruleXExpressionInRichString has non-LL(*) decision due to recursive rule invocations reachable from alts 1,2,5. Resolve by left-factoring or using syntactic predicates or using backtrack=true option.
warning(200): ../org.eclipse.xtext.xbase/src-gen/org/eclipse/xtext/xbase/parser/antlr/internal/InternalXpression.g:3025:1: Decision can match input such as "'('" using multiple alternatives: 1, 2, 5
As a result, alternative(s) 2,5 were disabled for that input
How did you get the editor running? Can you give me a hint?
Best,
Dan
|
|
|
Re: Does xbase work? [message #649424 is a reply to message #649279] |
Wed, 19 January 2011 03:19  |
Eclipse User |
|
|
|
Hi Dan,
are you sure that your meant the CVS repo? It's frozen since June 2010
because we migrated to git.
Please note that Xbase is still subject to change and clients should
currently use only with a good connection to the developers of Xtext ;-)
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 18.01.11 15:46, schrieb Daniel S:
> I m trying to get Xbase running by checking out xtext.xbase and
> xtext.common.types form the cvs repository. But if i run the xbase mw2,
> i get rule errors ...
>
>
> 7689 [main] INFO ipse.xtext.generator.LanguageConfig - generating
> infrastructure for org.eclipse.xtext.xbase.Xpression with fragments :
> ImplicitRuntimeFragment, ImplicitUiFragment, GrammarAccessFragment,
> ParseTreeConstructorFragment, XtextAntlrGeneratorFragment,
> JavaBasedContentAssistFragment
> error(211):
> ../org.eclipse.xtext.xbase/src-gen/org/eclipse/xtext/xbase/p arser/antlr/internal/InternalXpression.g:92:1:
> [fatal] rule ruleXExpression has non-LL(*) decision due to recursive
> rule invocations reachable from alts 1,2,6. Resolve by left-factoring or
> using syntactic predicates or using backtrack=true option.
> warning(200):
> ../org.eclipse.xtext.xbase/src-gen/org/eclipse/xtext/xbase/p arser/antlr/internal/InternalXpression.g:92:1:
> Decision can match input such as "'('" using multiple alternatives: 1, 2, 6
> As a result, alternative(s) 2,6 were disabled for that input
> warning(200):
> ../org.eclipse.xtext.xbase/src-gen/org/eclipse/xtext/xbase/p arser/antlr/internal/InternalXpression.g:1864:2:
> Decision can match input such as "'else'" using multiple alternatives: 1, 2
> As a result, alternative(s) 2 were disabled for that input
> error(211):
> ../org.eclipse.xtext.xbase/src-gen/org/eclipse/xtext/xbase/p arser/antlr/internal/InternalXpression.g:3025:1:
> [fatal] rule ruleXExpressionInRichString has non-LL(*) decision due to
> recursive rule invocations reachable from alts 1,2,5. Resolve by
> left-factoring or using syntactic predicates or using backtrack=true
> option.
> warning(200):
> ../org.eclipse.xtext.xbase/src-gen/org/eclipse/xtext/xbase/p arser/antlr/internal/InternalXpression.g:3025:1:
> Decision can match input such as "'('" using multiple alternatives: 1, 2, 5
> As a result, alternative(s) 2,5 were disabled for that input
>
>
> How did you get the editor running? Can you give me a hint?
>
> Best,
> Dan
>
>
>
|
|
|
Goto Forum:
Current Time: Tue Jul 15 16:26:46 EDT 2025
Powered by FUDForum. Page generated in 0.03779 seconds
|