(Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.
The location of the current token
The location and value of the current token
The index of the current token (a.k.a.
The index of the current token (a.k.a. the number of tokens previously read). This is used to determine whether a parser rule consumed more than one token, which is necessary when determining whether to ask the second rule for completions when evaluating alternatives (see definition of Parsers.|).
The end position of the previous token, that is the position that the input stream was at before the current token was matched.
The end position of the previous token, that is the position that the input stream was at before the current token was matched. The area from this position to the starting position of the current location should contain exactly the characters that were discarded between the previous token and the current one.
Return true if the last token read was a token delimiter (i.e.
Return true if the last token read was a token delimiter (i.e. an ignored token) or no token has been consumed yet. In other words return true if the stream is at a point where it is not possible to change the current (non-ignored) token by adding to the input stream.