- Timestamp:
- 10/12/16 14:33:24 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs/swe/bnftools/generator/EbnfGenerator.xtend
r87 r92 23 23 import de.ugoe.cs.swe.bnftools.ebnf.SectionHeading 24 24 import org.eclipse.core.resources.ResourcesPlugin 25 import de.ugoe.cs.swe.bnftools.ebnf.RepeatRange 25 26 26 27 /** … … 132 133 def compile(GroupedSequence gSequ) '''( «FOR d : gSequ.definitionList»«d.compile+" "»«ENDFOR» )''' 133 134 134 def compile(RepeatedSequence rSequ) '''{ «FOR d : rSequ.definitions»«d.compile+" "»«ENDFOR» }«IF rSequ.morethanonce»+«ENDIF»''' 135 def compile(RepeatedSequence rSequ) '''{ «FOR d : rSequ.definitions»«d.compile+" "»«ENDFOR» }«IF rSequ.morethanonce»+«ENDIF»«IF rSequ.range!=null»«rSequ.range.compile»«ENDIF»''' 136 137 def compile(RepeatRange rRange) '''#(«rRange.from»,«rRange.to»)''' 135 138 136 139 def compile(OptionalSequence oSequ) '''[ «FOR d : oSequ.definitionList»«d.compile+" "»«ENDFOR» ]'''
Note: See TracChangeset
for help on using the changeset viewer.