This module contains functions for tokenizing (scanning) characters into Erlang tokens.
Returns the category of
Returns the column of
Returns the end location of the text of
Uses an
Returns the line of
Returns the location of
Returns
Takes the list of characters
An error occurred.
A token is a tuple containing information about
syntactic category, the token annotations, and the
terminal symbol. For punctuation characters (such as
Valid options:
A callback function that is called when the scanner
has found an unquoted atom. If the function returns
Return comment tokens.
Return white space tokens. By convention, a newline character, if present, is always the first character of the text (there cannot be more than one newline in a white space token).
Short for
Include the token text in the token annotation. The text is the part of the input corresponding to the token.
Returns the symbol of
Returns the text of
This is the re-entrant scanner, which scans characters until
either a dot ('.' followed by a white space) or
Indicates that there is sufficient input
data to get a result.
The scanning was successful.
End of file was encountered before any more tokens.
An error occurred.
More data is required for building a term.
The
For a description of the options, see
{ErrorLocation, Module, ErrorDescriptor}
A string describing the error is obtained with the following call:
Module:format_error(ErrorDescriptor)
The continuation of the first call to the re-entrant input
functions must be