vimsheet.formula.tokenizer

Formula lexer — converts a formula string into a list of Tokens.

exception vimsheet.formula.tokenizer.TokenizeError[source]

Bases: ValueError

vimsheet.formula.tokenizer.tokenize(source)[source]

Lex source (without the leading ‘=’) and return a Token list.

The list is always terminated with a TT.EOF token.

Parameters:

source (str)

Return type:

list[Token]