Docs on Racc operator precedence.

This commit is contained in:
Yorick Peterse 2014-06-23 10:36:42 +02:00
parent 21a0f50457
commit 03be9f241c
1 changed files with 9 additions and 0 deletions

View File

@ -10,6 +10,15 @@ token T_SUB T_MUL
options no_result_var
# Token precedence according to the XPath 1.0 specification. The precedence of
# tokens such as T_PIPE and T_MOD is not mentioned in the official
# specification. Instead this precedence was based on an online excerpt of the
# book "XSLT 1.0".
#
# Each `left` or `right` line adds a new precedence rule in descending order.
# In other words, the tokens at the top have a higher precedence than those at
# the bottom.
#
prechigh
left T_PIPE T_MOD T_DIV T_MUL T_SUB T_ADD
left T_LT T_LTE T_GT T_GTE