[erlang-questions] abstract format issues
Fri Apr 17 21:59:55 CEST 2015
The documentation of the abstract format specifies that the second element
in the node tuples is LINE, an integer denoting the line number where the
node was built (the line of the "defining" token).
Issue 1: This is no longer entirely correct, since the lexical scanner can
return more complex information (line, column and text value). I will try
to update the docs for that.
Issue 2: For applications where the abstract syntax is used to refer to
source code, it is just as important to know the position of the first and
last tokens. I would like to know if there are more people interested in a
solution integrated in the regular parser (provided that backwards
compatibility can be preserved). If not, it is simpler to me to just hack
my own version of erl_parse.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions