Scanner

Scanner

Scanner converting a Jazz template source string into tokens.

Constructor

new Scanner(source:, filenameopt)

Create a scanner.
Source:
Parameters:
Name Type Attributes Description
source: string template source text
filename string <optional>
template filename for error reporting

Methods

next() → {Object}

Produce the next token from the source stream.
Source:
Returns:
Type:
Object
token object with type and positional metadata