Ignore:
Timestamp:
04/27/14 16:04:29 (10 years ago)
Author:
hkaulbersch
Message:

Added first quickfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs/swe/bnftools/generator/EbnfGenerator.xtend

    r62 r63  
    2626 */ 
    2727class EbnfGenerator implements IGenerator { 
    28         //generation of the file blaaa 
     28        //generation of the xsl-file 
    2929        override void doGenerate(Resource resource, IFileSystemAccess fsa) { 
    3030                for (e : resource.allContents.toIterable.filter(EtsiBnf)) { 
     
    3939        ''' 
    4040        <?xml version="1.0"?> 
    41         <!-- fop hello.xml -rtf hello.rtf --> 
     41        <!-- fop «bnf.name».xml -rtf «bnf.name».rtf --> 
    4242        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> 
    4343 
     
    6363        ''' 
    6464         
    65         def compile(Rule rule)'''<fo:block><fo:inline id="«rule.name»"  color="purple">«rule.name»</fo:inline>  ::=     «rule.definitionList.compile»</block>''' 
     65        def compile(Rule rule)'''<fo:block><fo:inline id="«rule.name»"  color="purple">«IF rule.rulenumber!=0»«rule.rulenumber».\t«ENDIF»«rule.name»</fo:inline>        ::=     «rule.definitionList.compile»</block>''' 
    6666         
    6767        def compile(DefinitionList dList)'''«FOR sDef:dList.singleDefinition»«sDef.compile»«IF !sDef.equals(dList.singleDefinition.last)» | «ENDIF»«ENDFOR»''' 
Note: See TracChangeset for help on using the changeset viewer.