Commit 2efd545a authored by POTTIER Francois's avatar POTTIER Francois
Browse files

Update the manual and the change log.

parent b0e35f6c
# Changes
## 2018/07/03
* New location keywords.
`$loc` is sugar for the pair `($startpos, $endpos)`.
`$loc(x)` is sugar for the pair `($startpos(x), $endpos(x))`.
`$sloc` is sugar for the pair `($symbolstartpos, $endpos)`.
(Contributed by Nicolás Ojeda Bär.)
## 2018/06/08
* Add two new parameterized nonterminal symbols, `endrule(X)` and `midrule(X)`,
......@@ -1810,11 +1810,20 @@ the author of the lexical analyzer.)
\ksymbolstartpos & start position of the leftmost symbol \nt{id} such that
\verb+$startpos(+\nt{id}\verb+)+ \verb+!=+\, \verb+$endpos(+\nt{id}\verb+)+; \\&
if there is no such symbol, \verb+$endpos+ \\[2mm]
\verb+$startofs+ \\
\verb+$endofs+ \\
\verb+$startofs(+ \verb+$+\nt{i} \barre \nt{id} \verb+)+ & same as above, but produce an integer offset instead of a position \\
\verb+$endofs(+ \verb+$+\nt{i} \barre \nt{id} \verb+)+ \\
\verb+$symbolstartofs+ \\
\verb+$symbolstartofs+ \\[2mm]
\verb+$loc+ & stands for the pair \verb+($startpos, $endpos)+ \\
\verb+$loc(+ \nt{id} \verb+)+ & stands for the pair \verb+($startpos(+ \nt{id} \verb+), $endpos(+ \nt{id} \verb+))+ \\
% $loc($i)$ works too,
% but is not documented,
% as that would be visually heavy
% and its use is not encouraged anyway.
\verb+$sloc+ & stands for the pair \verb+($symbolstartpos, $endpos)+ \\
\caption{Position-related keywords}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment