class Marten::Template::Parser::Lexer
- Marten::Template::Parser::Lexer
- Reference
- Object
Overview
The Marten template lexer.
This class allows to perform a lexical analysis from a raw template: given a text input, the #tokenize
method
converts a sequence of characters into an array of tokens that represents the ramifications of the considered
template (tags, variables, comments and raw text).
Defined in:
marten/template/parser/lexer.crConstructors
Instance Method Summary
-
#tokenize : Array(Token)
Processes the template source and returns an array of lexical tokens.
Constructor Detail
Instance Method Detail
Processes the template source and returns an array of lexical tokens.