<br>I did it to some extent in CCviewer, but I wouldn't recommend reusing the code...<br><br>I think that for starters, the token scanner needs to preserve column information.<br>I think the standard tokenizer should have an option to do this.
<br><br>BR,<br>Ulf W<br><br><div><span class="gmail_quote">2007/4/25, Joe Armstrong <<a href="mailto:erlang@gmail.com">erlang@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello, has anybody got a "semantic tagger" that can tag Erlang source<br>code files?<br><br>I want to convert a .erl file into a sequence of tokens<br><br>[{Tag, String}]<br><br>where Tag is a semantic tag (like comment, variable, atom, functionCall, etc.)
<br>that tags the following string.<br><br>Constraint: If I concatenate all the strings in token list I should get the<br>original file content. I want to preserve all input formatting.<br><br>Has anybody done this?<br><br>
/Joe<br>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br><a href="http://www.erlang.org/mailman/listinfo/erlang-questions">
http://www.erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote></div><br>