"Patrik wrote:
> 
> I did a quick attempt the other day but got stuck on some scoping issues
> and then I have not had time to look at it more.
> 

I managed to fix scoping issues.


Other main issues during porting that I had were:


        
in dsl.ui Projects:
        

                
SculptordslSemanticHighlightingCalculator.java: Renamed
                references DefaultLexicalHighlightingConfiguration =>
                DefaultHighlightingConfiguration
                
SculptordslUiModule.java: added required non-default
                constructor
                
SculptordslLabelProvider.java: renamed references
                DefaultLabelProvider => DefaultEObjectLabelProvider
                
SculptorguidslLabelProvider.java:
        

        
        
Maven
        

                
I had to create new maven artifacts for Xtext, Xpand, mwe,
                mwe2, ecore, emf, ...
                
fornax-oaw-m2-plugin: version update 3.0.1 => 3.2.0
        

        

        
in -generator project:
        

                
JavaBeautifier: slightly rewritten to be compatible to the
                new mwe/mwe2 API
                
helper.ext: removed duplicated getNonEnumDomainObjects
                function
                
renamed references org.eclipse.xtext.ui.DefaultLabelProvider
                => org.eclipse.xtext.ui.label.DefaultEObjectLabelProvider
        



During porting I basically followed Xtext 1.0.1 reference
documentation (chapter about porting).


Currently the port works fine.


The only issue I didn't manage to fix is the grammar problem that
I mentioned in this thread. I had to remove CommandEvent completely from
grammar in order to get the whole grammar working.






"Patrik wrote:
> 
> One thing in the grammar that I think we should change is the way we
> handle unordered groups.
> 
Using unorderd groups like this


DslEntity :
  (doc=STRING)?
  (abstract?="abstract")? "Entity" name=ID ("extends"
(("@"extends=[DslEntity]) | (extendsName=DslJavaIdentifier)))? "{"
    ("package" "=" package=DslJavaIdentifier )?
    (((notOptimisticLocking?=NOT "optimisticLocking") |
("optimisticLocking"))? &
     ((notAuditable?=NOT "auditable") | ("auditable"))? &
     ((cache?="cache") | (NOT "cache"))? &
...
     ("validate" "=" validate=STRING)? &
     ((notAggregateRoot?=NOT "aggregateRoot") | ("aggregateRoot"))? &
     ("belongsTo" (("@")?belongsTo=[DslDomainObject]))?)
    ((attributes+=DslAttribute) |
     (references+=DslReference))*
    (repository=DslRepository)?
  "}";


didn't help.
-- 
View this message in context: 
http://old.nabble.com/ANTLR-issue-with-Xtext-1.0.1-tp29613279s17564p29632841.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to