[erlang-questions] abstract format issues

Vlad Dumitrescu <>
Fri Apr 17 21:59:55 CEST 2015


Hi!

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.

best regards,
Vlad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150417/809292e5/attachment.html>


More information about the erlang-questions mailing list