Changeset 63 in default for v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/xtend-gen
- Timestamp:
- 04/27/14 16:04:29 (11 years ago)
- Location:
- v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/xtend-gen/de/ugoe/cs/swe/bnftools
- Files:
-
- 2 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/xtend-gen/de/ugoe/cs/swe/bnftools/formatting/EbnfFormatter.java
r61 r63 8 8 import org.eclipse.xtext.IGrammarAccess; 9 9 import org.eclipse.xtext.ParserRule; 10 import org.eclipse.xtext.RuleCall; 10 11 import org.eclipse.xtext.TerminalRule; 11 12 import org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter; … … 45 46 ParserRule _importRule = f.getImportRule(); 46 47 _setLinewrap_4.before(_importRule); 48 FormattingConfig.NoSpaceLocator _setNoSpace = c.setNoSpace(); 49 EbnfGrammarAccess.RuleElements _ruleAccess = f.getRuleAccess(); 50 RuleCall _rulenumberINTTerminalRuleCall_0_0_0 = _ruleAccess.getRulenumberINTTerminalRuleCall_0_0_0(); 51 _setNoSpace.after(_rulenumberINTTerminalRuleCall_0_0_0); 47 52 } 48 53 } -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/xtend-gen/de/ugoe/cs/swe/bnftools/generator/EbnfGenerator.java
r61 r63 56 56 _builder.append("<?xml version=\"1.0\"?>"); 57 57 _builder.newLine(); 58 _builder.append("<!-- fop hello.xml -rtf hello.rtf -->"); 59 _builder.newLine(); 58 _builder.append("<!-- fop "); 59 String _name = bnf.getName(); 60 _builder.append(_name, ""); 61 _builder.append(".xml -rtf "); 62 String _name_1 = bnf.getName(); 63 _builder.append(_name_1, ""); 64 _builder.append(".rtf -->"); 65 _builder.newLineIfNotEmpty(); 60 66 _builder.append("<fo:root xmlns:fo=\"http://www.w3.org/1999/XSL/Format\">"); 61 67 _builder.newLine(); … … 123 129 _builder.append(_name, ""); 124 130 _builder.append("\"\tcolor=\"purple\">"); 131 { 132 int _rulenumber = rule.getRulenumber(); 133 boolean _notEquals = (_rulenumber != 0); 134 if (_notEquals) { 135 int _rulenumber_1 = rule.getRulenumber(); 136 _builder.append(_rulenumber_1, ""); 137 _builder.append(".\\t"); 138 } 139 } 125 140 String _name_1 = rule.getName(); 126 141 _builder.append(_name_1, ""); -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/xtend-gen/de/ugoe/cs/swe/bnftools/validation/EbnfValidator.java
r61 r63 26 26 @SuppressWarnings("all") 27 27 public class EbnfValidator extends AbstractEbnfValidator { 28 p rivatefinal static String ruleReferencedOneDescription = "The rule is only referenced by one other rule";29 30 p rivatefinal static String passthroughRuleDescription = "The rule is a passthrough rule";31 32 p rivatefinal static String unreferencedPassthroughRuleDescription = "The rule is an unreferenced passthrough rule";33 34 p rivatefinal static String unusedRuleDescription = "The rule is not referenced anywhere";35 36 p rivatefinal static String equalAlternativeDescription = "The rule contains equal alternatives";37 38 p rivatefinal static String duplicateRulesDescription = "The rule is a duplicate";39 40 p rivatefinal static String nonUniqueNameDescription = "The rule has the same Name as the Rule in Line ";28 public final static String ruleReferencedOneDescription = "The rule is only referenced by one other rule"; 29 30 public final static String passthroughRuleDescription = "The rule is a passthrough rule"; 31 32 public final static String unreferencedPassthroughRuleDescription = "The rule is an unreferenced passthrough rule"; 33 34 public final static String unusedRuleDescription = "The rule is not referenced anywhere"; 35 36 public final static String equalAlternativeDescription = "The rule contains equal alternatives"; 37 38 public final static String duplicateRulesDescription = "The rule is a duplicate"; 39 40 public final static String nonUniqueNameDescription = "The rule has the same Name as the Rule in Line "; 41 41 42 42 /** … … 63 63 } 64 64 if (_and) { 65 this.warning(EbnfValidator.ruleReferencedOneDescription, EbnfPackage.Literals.RULE__NAME); 65 String _name = rule.getName(); 66 this.warning(EbnfValidator.ruleReferencedOneDescription, EbnfPackage.Literals.RULE__NAME, EbnfValidator.ruleReferencedOneDescription, _name); 66 67 } 67 68 } … … 158 159 } 159 160 if (_and) { 160 this.warning(EbnfValidator.unusedRuleDescription, EbnfPackage.Literals.RULE__NAME); 161 String _name = rule.getName(); 162 this.warning(EbnfValidator.unusedRuleDescription, EbnfPackage.Literals.RULE__NAME, EbnfValidator.unusedRuleDescription, _name); 161 163 } 162 164 }
Note: See TracChangeset
for help on using the changeset viewer.