I want to know if it is possible to parse tokens + their position +
their length with Scalas parser combinators.
I tried to use JavaTokenParsers but they seem not be the best way to
achieve what I want. My current progress: https://gist.github.com/3709623
Main problems are the ugly notation of the tokens and wrong
determination of positions (I can't find out a way to get the length of
identifiers without adding count of whitespace).
StandardTokenParsers are better to parse tokens, I assume, but they
neither offer a simple way to return the position of a token.
Need I to build may own position based token parser? If yes, does
someone know some projects/examples which already tried to do the same?