jasy.style.tokenize package

Submodules

jasy.style.tokenize.Tokenizer module

class jasy.style.tokenize.Tokenizer.Token[source]

Bases: builtins.object

assignOp
end
line
quote
start
type
unit
value
class jasy.style.tokenize.Tokenizer.Tokenizer(source, fileId='', line=1)[source]

Bases: builtins.object

done()[source]
find(anyOf)[source]
get(scanOperand=False)[source]

It consumes input only if there is no lookahead. Dispatches to the appropriate lexing function depending on the input.

getComments()[source]
input_
lexDot(ch)[source]
lexIdent(ch)[source]
lexNumber(ch)[source]
lexOp(ch)[source]
lexString(ch)[source]
lexUnit()[source]

Parses units like %, cm, inch, px, etc.

lexZeroNumber(ch)[source]
match(tokenType, scanOperand=False)[source]
mustMatch(tokenType)[source]
peek(scanOperand=False)[source]
peekOnSameLine(scanOperand=False)[source]
rewind(point)[source]
save()[source]
skip()[source]

Eats comments and whitespace.

token
unget()[source]

Match depends on unget returning undefined.

exception jasy.style.tokenize.Tokenizer.TokenizerError(message, fileId, line)[source]

Bases: builtins.Exception

Module contents

Table Of Contents

Previous topic

jasy.style.process package

Next topic

jasy.template package

This Page