Revision: 4285
          http://vexi.svn.sourceforge.net/vexi/?rev=4285&view=rev
Author:   mkpg2
Date:     2011-10-18 00:09:42 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
Comment. Explain associativity in parser.

Modified Paths:
--------------
    trunk/org.vexi-library.js/src/main/java/org/ibex/js/parse/Parser.java

Modified: trunk/org.vexi-library.js/src/main/java/org/ibex/js/parse/Parser.java
===================================================================
--- trunk/org.vexi-library.js/src/main/java/org/ibex/js/parse/Parser.java       
2011-10-16 04:25:28 UTC (rev 4284)
+++ trunk/org.vexi-library.js/src/main/java/org/ibex/js/parse/Parser.java       
2011-10-18 00:09:42 UTC (rev 4285)
@@ -86,7 +86,16 @@
     // Statics ////////////////////////////////////////////////////////////
 
     static byte[] precedence = new byte[MAX_TOKEN + 1];
+    
+    // REMARK associativity means the bracketing scheme when encountering the 
same (or same precedence) operator consecutively.
+    //    e.g. minus is left associative  
+    //                   1-1-1-1 == ((1-1)-1)-1
+    //         assign is right associative    
+    //                   a=b=c=d == a=(b=(c=d))       
     static boolean[] isRightAssociative = new boolean[MAX_TOKEN + 1];
+    
+    
+    
     // Use this as the precedence when we want anything up to the comma
     private final static int NO_COMMA = 2;
     static {

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


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to