Changeset 11 in default for trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de
- Timestamp:
- 10/22/10 14:53:37 (14 years ago)
- Location:
- trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs/swe/bnftools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs/swe/bnftools/GenerateEbnf.mwe2
r5 r11 76 76 //fragment = exporting.QualifiedNamesFragment {} 77 77 78 // formatter API 79 fragment = formatting.FormatterFragment {} 78 // formatter API 79 // skip it as it is not sufficient for our case... 80 // fragment = formatting.FormatterFragment {} 80 81 81 82 // labeling API -
trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs/swe/bnftools/formatting/EbnfFormatter.java
r5 r11 19 19 @Override 20 20 protected void configureFormatting(FormattingConfig c) { 21 de.ugoe.cs.swe.bnftools.services.EbnfGrammarAccess f = (de.ugoe.cs.swe.bnftools.services.EbnfGrammarAccess) getGrammarAccess();22 23 c.setIndentationSpace(" ");24 c.setNoLinewrap();25 c.setAutoLinewrap(10000000);26 c.setLinewrap(2).before(f.getSectionHeadingRule());27 c.setLinewrap(2).after(f.getSectionHeadingRule());28 29 30 c.setNoSpace().after(f.getRuleAccess().getRulenumberINTTerminalRuleCall_0_0_0());31 c.setNoSpace().after(f.getRuleAccess().getRulevariantIDTerminalRuleCall_0_1_0());32 33 c.setLinewrap().before(f.getRuleAccess().getRulenumberINTTerminalRuleCall_0_0_0());34 c.setNoSpace().before(f.getRuleAccess().getSemicolonKeyword_4());35 // c.setNoSpace().before(f.getRuleAccess().getNameIDTerminalRuleCall_1_0());36 37 // c.setLinewrap().after(f.getRuleAccess().getDefinitionListDefinitionListParserRuleCall_3_0());38 c.setLinewrap().after(f.getRuleAccess().getDefinitionListAssignment_3());39 40 c.setLinewrap(2).before(f.getSL_COMMENTRule());41 c.setNoLinewrap().after(f.getSL_COMMENTRule());42 c.setLinewrap(2).before(f.getML_COMMENTRule());21 // de.ugoe.cs.swe.bnftools.services.EbnfGrammarAccess f = (de.ugoe.cs.swe.bnftools.services.EbnfGrammarAccess) getGrammarAccess(); 22 // 23 // c.setIndentationSpace(" "); 24 // c.setNoLinewrap(); 25 // c.setAutoLinewrap(10000000); 26 // c.setLinewrap(2).before(f.getSectionHeadingRule()); 27 // c.setLinewrap(2).after(f.getSectionHeadingRule()); 28 // 29 // 30 // c.setNoSpace().after(f.getRuleAccess().getRulenumberINTTerminalRuleCall_0_0_0()); 31 // c.setNoSpace().after(f.getRuleAccess().getRulevariantIDTerminalRuleCall_0_1_0()); 32 // 33 // c.setLinewrap().before(f.getRuleAccess().getRulenumberINTTerminalRuleCall_0_0_0()); 34 // c.setNoSpace().before(f.getRuleAccess().getSemicolonKeyword_4()); 35 //// c.setNoSpace().before(f.getRuleAccess().getNameIDTerminalRuleCall_1_0()); 36 // 37 //// c.setLinewrap().after(f.getRuleAccess().getDefinitionListDefinitionListParserRuleCall_3_0()); 38 // c.setLinewrap().after(f.getRuleAccess().getDefinitionListAssignment_3()); 39 // 40 // c.setLinewrap(2).before(f.getSL_COMMENTRule()); 41 // c.setNoLinewrap().after(f.getSL_COMMENTRule()); 42 // c.setLinewrap(2).before(f.getML_COMMENTRule()); 43 43 } 44 44
Note: See TracChangeset
for help on using the changeset viewer.