Documentation

An error or maybe the abstract syntax tree (AST) of zero or more Javascript statements, plus comments.

Parse one compound statement, or a sequence of simple statements.
Generally used for interactive input, such as from the command line of an interpreter.
Return comments in addition to the parsed statements.

Posn records the location of a token in the input text. It has three
fields: the address (number of characters preceding the token), line number
and column of a token within the file. start_pos gives the position of the
start of the file and eof_pos a standard encoding for the end of file.
move_pos calculates the new position after traversing a given character,
assuming the usual eight character tab stops.