Revision: 15292
          http://gate.svn.sourceforge.net/gate/?rev=15292&view=rev
Author:   valyt
Date:     2012-02-01 13:48:32 +0000 (Wed, 01 Feb 2012)
Log Message:
-----------
Better formatting for the generated code.

Modified Paths:
--------------
    gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/SPTBuilder.java

Modified: gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/SPTBuilder.java
===================================================================
--- gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/SPTBuilder.java     
2012-02-01 13:47:22 UTC (rev 15291)
+++ gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/SPTBuilder.java     
2012-02-01 13:48:32 UTC (rev 15292)
@@ -337,7 +337,7 @@
         out.append(TABS[tabs]).append(
           "activeInstances.addLast(nextInstance);\n");
         tabs--;
-        out.append(TABS[tabs]).append("} // end transition block\n\n");
+        out.append(TABS[tabs]).append("} // end transition block\n");
       } else if(transition.type != TransitionPDA.TYPE_CONSTRAINT){
         // closing-round-bracket transition
         out.append(TABS[tabs]).append(
@@ -350,7 +350,7 @@
         out.append(TABS[tabs]).append(
             "nextInstance.state = 
").append(transition.nextState).append(";\n"); 
         out.append(TABS[tabs]).append(
-            "activeInstances.addLast(nextInstance);\n\n");
+            "activeInstances.addLast(nextInstance);\n");
         tabs--;
         out.append(TABS[tabs]).append("} // end transition block\n");        
       } else {
@@ -498,14 +498,14 @@
       StatePDA anOldState = oldStatesQueue.removeFirst();
       if(oldToNewStates.containsKey(anOldState.getIndex())){
         //state already converted
-      }else{
+      } else {
         //new state required
         SPTBase.State newState = new SPTBase.State(); 
         newStates.add(newState);
         oldToNewStates.put(anOldState.getIndex(), newStates.size() -1);
         //queue all old states reachable from this state
         for(gate.fsm.Transition anOldTransition : anOldState.getTransitions()){
-          oldStatesQueue.add((StatePDA) anOldTransition.getTarget());
+          oldStatesQueue.add((StatePDA)anOldTransition.getTarget());
         }
         //if state is final, set the rule value
         newState.rule = -1;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to