[pypy-svn] r43515 - pypy/dist/pypy/lang/js

cfbolz at codespeak.net cfbolz at codespeak.net
Sun May 20 18:26:24 CEST 2007


Author: cfbolz
Date: Sun May 20 18:26:24 2007
New Revision: 43515

Modified:
   pypy/dist/pypy/lang/js/jsgrammar.txt
Log:
Fix the transformation annotations. I think this is what you want and it gives
pretty nice trees.


Modified: pypy/dist/pypy/lang/js/jsgrammar.txt
==============================================================================
--- pypy/dist/pypy/lang/js/jsgrammar.txt	(original)
+++ pypy/dist/pypy/lang/js/jsgrammar.txt	Sun May 20 18:26:24 2007
@@ -201,12 +201,12 @@
 functionbody    : sourceelements
                 ;
 
-memberexpression: primaryexpression >memberexpression<
-                | functionexpression >memberexpression<
+memberexpression: primaryexpression memberexpression
+                | functionexpression memberexpression
                 | <primaryexpression>
                 | <functionexpression>
-                | "." identifier >memberexpression<*
-                | "[" expression "]" >memberexpression<*
+                | "." identifier memberexpression*
+                | "[" expression "]" memberexpression*
                 | "new" memberexpression arguments
                 ;
 



More information about the Pypy-commit mailing list