velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r568720 - in /velocity/engine/trunk/src: java/org/apache/velocity/runtime/parser/Parser.java java/org/apache/velocity/runtime/parser/Parser.jj parser/Parser.jjt
Date Wed, 22 Aug 2007 18:20:13 GMT
Author: nbubna
Date: Wed Aug 22 11:20:12 2007
New Revision: 568720

URL: http://svn.apache.org/viewvc?rev=568720&view=rev
Log:
minor spelling corrections :)

Modified:
    velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/Parser.java
    velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/Parser.jj
    velocity/engine/trunk/src/parser/Parser.jjt

Modified: velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/Parser.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/Parser.java?rev=568720&r1=568719&r2=568720&view=diff
==============================================================================
--- velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/Parser.java (original)
+++ velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/Parser.java Wed Aug
22 11:20:12 2007
@@ -211,13 +211,13 @@
     }
 
     /**
-     * Check whether their is a left parenthesis with leading optional
+     * Check whether there is a left parenthesis with leading optional
      * whitespaces. This method is used in the semantic look ahead of
      * Directive method. It requires lot of changes to implement the
      * required look ahead as a BNF production and the code will become
      * inefficient.
      */
-    private boolean isLeftParantheses()
+    private boolean isLeftParenthesis()
     {
         char c;
         int no = 0;
@@ -734,7 +734,7 @@
         token_source.SwitchTo(DIRECTIVE);
 
         argPos = 0;
-      if (isLeftParantheses()) {
+      if (isLeftParenthesis()) {
         switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
         case WHITESPACE:
           jj_consume_token(WHITESPACE);

Modified: velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/Parser.jj
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/Parser.jj?rev=568720&r1=568719&r2=568720&view=diff
==============================================================================
--- velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/Parser.jj (original)
+++ velocity/engine/trunk/src/java/org/apache/velocity/runtime/parser/Parser.jj Wed Aug 22
11:20:12 2007
@@ -15,7 +15,7 @@
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
- * under the License.    
+ * under the License.
  */
 
 /*
@@ -23,14 +23,14 @@
  *    to always have to page past it... :)
  */
 options
-{                                                                                       
                                                                                         
                                                                                         
                                                                                         
                                                                                         
                                                                                         
                                                                         
+{
 
     /**
      * The parser must be non-static in order for the
      * above option to work, otherwise the parser value
      * is passed in as null, which isn't all the useful ;)
      */
-    STATIC=false;                                                                       
                                                                                         
                                                                                         
                                                           
+    STATIC=false;
 
     /**
      * Declare that we are accepting unicode input and
@@ -267,13 +267,13 @@
     }
 
     /**
-     * Check weather their is a left parenthesis with leading optional
+     * Check whether there is a left parenthesis with leading optional
      * whitespaces. This method is used in the semantic look ahead of
      * Directive method. It requires lot of changes to implement the
      * required look ahead as a BNF production and the code will become
      * inefficient.
      */
-    private boolean isLeftParantheses()
+    private boolean isLeftParenthesis()
     {
         char c;
         int no = 0;
@@ -1518,7 +1518,7 @@
      /**
       * Look for the patter [WHITESPACE] <LPAREN>
       */
-    (LOOKAHEAD( { isLeftParantheses() } )
+    (LOOKAHEAD( { isLeftParenthesis() } )
     /*
      *  if this is indeed a token, match the #foo ( arg ) pattern
      */
@@ -1678,7 +1678,7 @@
       |
       [ <WHITESPACE> ]
      )
-     
+
      /** note: need both tokens as they are generated in different states **/
      ( <RIGHT_CURLEY> | <RCURLY> )/*@bgen(jjtree)*/
     } catch (Throwable jjte000) {

Modified: velocity/engine/trunk/src/parser/Parser.jjt
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/parser/Parser.jjt?rev=568720&r1=568719&r2=568720&view=diff
==============================================================================
--- velocity/engine/trunk/src/parser/Parser.jjt (original)
+++ velocity/engine/trunk/src/parser/Parser.jjt Wed Aug 22 11:20:12 2007
@@ -293,7 +293,7 @@
      * Directive method. This is done in code instead of as a production
      * for simplicity and efficiency.
      */
-    private boolean isLeftParantheses()
+    private boolean isLeftParenthesis()
     {
         char c;
         int no = 0;
@@ -1395,7 +1395,7 @@
      /**
       * Look for the patter [WHITESPACE] <LPAREN>
       */
-    (LOOKAHEAD( { isLeftParantheses() } )
+    (LOOKAHEAD( { isLeftParenthesis() } )
     /*
      *  if this is indeed a token, match the #foo ( arg ) pattern
      */



Mime
View raw message