class documentation

class Lexer(object):

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method append​_node Undocumented
Method decode​_raw​_stream given string/unicode or bytes/string, determine encoding from magic encoding comment, return body as unicode or raw if decode_raw=False
Method match compile the given regexp, cache the reg, and call match_reg().
Method match​_comment matches the multiline version of a comment
Method match​_control​_line Undocumented
Method match​_end Undocumented
Method match​_expression Undocumented
Method match​_python​_block Undocumented
Method match​_reg match the given regular expression object to the current text position.
Method match​_tag​_end Undocumented
Method match​_tag​_start Undocumented
Method match​_text Undocumented
Method parse Undocumented
Method parse​_until​_text Undocumented
Class Variable ​_coding​_re Undocumented
Instance Variable control​_line Undocumented
Instance Variable disable​_unicode Undocumented
Instance Variable encoding Undocumented
Instance Variable filename Undocumented
Instance Variable keyword Undocumented
Instance Variable lineno Undocumented
Instance Variable match​_position Undocumented
Instance Variable matched​_charpos Undocumented
Instance Variable matched​_lineno Undocumented
Instance Variable preprocessor Undocumented
Instance Variable tag Undocumented
Instance Variable template Undocumented
Instance Variable ternary​_stack Undocumented
Instance Variable text Undocumented
Instance Variable textlength Undocumented
Property exception​_kwargs Undocumented
def __init__(self, text, filename=None, disable_unicode=False, input_encoding=None, preprocessor=None):

Undocumented

def append_node(self, nodecls, *args, **kwargs):

Undocumented

def decode_raw_stream(self, text, decode_raw, known_encoding, filename):
given string/unicode or bytes/string, determine encoding from magic encoding comment, return body as unicode or raw if decode_raw=False
def match(self, regexp, flags=None):
compile the given regexp, cache the reg, and call match_reg().
def match_comment(self):
matches the multiline version of a comment
def match_control_line(self):

Undocumented

def match_end(self):

Undocumented

def match_expression(self):

Undocumented

def match_python_block(self):

Undocumented

def match_reg(self, reg):

match the given regular expression object to the current text position.

if a match occurs, update the current text and line position.

def match_tag_end(self):

Undocumented

def match_tag_start(self):

Undocumented

def match_text(self):

Undocumented

def parse(self):

Undocumented

def parse_until_text(self, watch_nesting, *text):

Undocumented

_coding_re =

Undocumented

control_line: list =

Undocumented

disable_unicode =

Undocumented

encoding =

Undocumented

filename =

Undocumented

keyword =

Undocumented

lineno: int =

Undocumented

match_position =

Undocumented

matched_charpos =

Undocumented

matched_lineno =

Undocumented

preprocessor: list =

Undocumented

tag: list =

Undocumented

template =

Undocumented

ternary_stack: list =

Undocumented

text =

Undocumented

textlength =

Undocumented

@property
exception_kwargs =

Undocumented