python-lottie  0.7.0+devd020110
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.utils.funky_parser.Lexer Class Reference

Public Member Functions

def __init__ (self, text)
 
def next (self)
 
def back (self)
 
def save (self)
 
def restore (self, index)
 

Public Attributes

 text
 
 pos
 
 token
 
 line
 
 line_pos
 
 tokens
 
 token_index
 

Static Public Attributes

 expression
 

Detailed Description

Definition at line 313 of file funky_parser.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.utils.funky_parser.Lexer.__init__ (   self,
  text 
)

Definition at line 319 of file funky_parser.py.

Member Function Documentation

◆ back()

def lottie.utils.funky_parser.Lexer.back (   self)

Definition at line 377 of file funky_parser.py.

◆ next()

def lottie.utils.funky_parser.Lexer.next (   self)

Definition at line 334 of file funky_parser.py.

◆ restore()

def lottie.utils.funky_parser.Lexer.restore (   self,
  index 
)

Definition at line 384 of file funky_parser.py.

◆ save()

def lottie.utils.funky_parser.Lexer.save (   self)

Definition at line 381 of file funky_parser.py.

Member Data Documentation

◆ expression

lottie.utils.funky_parser.Lexer.expression
static
Initial value:
= re.compile(
r'[\r\t ]*(?P<token>(?P<punc>[:,;.])|(?P<word>[a-zA-Z\']+)|(?P<color>#(?:[a-fA-F0-9]{3}){1,2})|' +
r'(?P<number>-?[0-9]+(?P<fraction>\.[0-9]+)?)|(?P<string>"(?:[^"\\]|\\["\\nbt])+"))[\r\t ]*'
)

Definition at line 314 of file funky_parser.py.

◆ line

lottie.utils.funky_parser.Lexer.line

Definition at line 323 of file funky_parser.py.

◆ line_pos

lottie.utils.funky_parser.Lexer.line_pos

Definition at line 324 of file funky_parser.py.

◆ pos

lottie.utils.funky_parser.Lexer.pos

Definition at line 321 of file funky_parser.py.

◆ text

lottie.utils.funky_parser.Lexer.text

Definition at line 320 of file funky_parser.py.

◆ token

lottie.utils.funky_parser.Lexer.token

Definition at line 322 of file funky_parser.py.

◆ token_index

lottie.utils.funky_parser.Lexer.token_index

Definition at line 326 of file funky_parser.py.

◆ tokens

lottie.utils.funky_parser.Lexer.tokens

Definition at line 325 of file funky_parser.py.


The documentation for this class was generated from the following file: