Return-Path: Delivered-To: apmail-velocity-commits-archive@locus.apache.org Received: (qmail 84376 invoked from network); 22 Aug 2007 18:20:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Aug 2007 18:20:35 -0000 Received: (qmail 14952 invoked by uid 500); 22 Aug 2007 18:20:32 -0000 Delivered-To: apmail-velocity-commits-archive@velocity.apache.org Received: (qmail 14925 invoked by uid 500); 22 Aug 2007 18:20:32 -0000 Mailing-List: contact commits-help@velocity.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@velocity.apache.org Delivered-To: mailing list commits@velocity.apache.org Received: (qmail 14910 invoked by uid 99); 22 Aug 2007 18:20:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2007 11:20:32 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2007 18:20:34 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 828471A981A; Wed, 22 Aug 2007 11:20:14 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@velocity.apache.org From: nbubna@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070822182014.828471A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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] */ - (LOOKAHEAD( { isLeftParantheses() } ) + (LOOKAHEAD( { isLeftParenthesis() } ) /* * if this is indeed a token, match the #foo ( arg ) pattern */ @@ -1678,7 +1678,7 @@ | [ ] ) - + /** note: need both tokens as they are generated in different states **/ ( | )/*@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] */ - (LOOKAHEAD( { isLeftParantheses() } ) + (LOOKAHEAD( { isLeftParenthesis() } ) /* * if this is indeed a token, match the #foo ( arg ) pattern */