This module contains functions for tokenizing characters into Erlang tokens.
Takes the list of characters
A token is a tuple containing information about
syntactic category, the token annotations, and the actual
terminal symbol. For punctuation characters (e.g.
The valid options are:
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, if there is a newline character, it 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's text in the token annotation. The text is the part of the input corresponding to the token.
This is the re-entrant scanner which scans characters until
a dot ('.' followed by a white space) or
This return 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
See
Returns
Returns the category of
Returns the symbol of
Returns the column of
Returns the end location of the text of
Returns the line of
Returns the location of
Returns the text of
Takes an
The
{ErrorLocation, Module, ErrorDescriptor}
A string which describes 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