[erlang-patches] patch for xmerl_xpath_parse: 'mod' operator not parsed correctly
Matthew Dempsky
matthew@REDACTED
Fri Aug 15 21:13:40 CEST 2008
The patch below fixes a typo in the XPath yecc grammar for parsing
'mod' expressions:
--- xmerl_xpath_parse.yrl~ 2006-05-04 10:38:38.000000000 -0500
+++ xmerl_xpath_parse.yrl 2008-08-15 14:05:40.000000000 -0500
@@ -259,10 +259,10 @@
'MultiplicativeExpr' -> 'UnaryExpr' : '$1' .
'MultiplicativeExpr' -> 'MultiplicativeExpr' 'MultiplyOperator' 'UnaryExpr'
: {arith, '$2', '$1', '$3'} .
-'MultiplicativeExpr' -> 'MultiplicativeExpr' 'div' 'UnaryExpr'
+'MultiplicativeExpr' -> 'MultiplicativeExpr' 'div' 'UnaryExpr'
: {arith, 'div', '$1', '$3'} .
-'MultiplicativeExpr' -> 'MultiplicativeExpr' 'mod' 'UnaryExpr' :
- {arith, 'mod', '$1', '$2'} .
+'MultiplicativeExpr' -> 'MultiplicativeExpr' 'mod' 'UnaryExpr'
+ : {arith, 'mod', '$1', '$3'} .
%% [27]
More information about the erlang-patches
mailing list