Robot Framework
robot.parsing.lexer.lexer.Lexer Class Reference

Public Member Functions

def __init__ (self, ctx, data_only=False, tokenize_variables=False)
 
def get_tokens (self)
 
def input (self, source)
 

Public Attributes

 data_only
 
 lexer
 
 statements
 
 tokenize_variables
 

Private Member Functions

def _get_tokens (self, statements)
 
def _is_commented_or_empty (self, line)
 
def _read (self, source)
 
def _split_to_lines (self, statement)
 
def _split_trailing_commented_and_empty_lines (self, statement)
 
def _tokenize_variables (self, tokens)
 

Detailed Description

Definition at line 78 of file lexer.py.

Constructor & Destructor Documentation

◆ __init__()

def robot.parsing.lexer.lexer.Lexer.__init__ (   self,
  ctx,
  data_only = False,
  tokenize_variables = False 
)

Definition at line 80 of file lexer.py.

Member Function Documentation

◆ _get_tokens()

def robot.parsing.lexer.lexer.Lexer._get_tokens (   self,
  statements 
)
private

Definition at line 119 of file lexer.py.

◆ _is_commented_or_empty()

def robot.parsing.lexer.lexer.Lexer._is_commented_or_empty (   self,
  line 
)
private

Definition at line 171 of file lexer.py.

◆ _read()

def robot.parsing.lexer.lexer.Lexer._read (   self,
  source 
)
private

Definition at line 99 of file lexer.py.

◆ _split_to_lines()

def robot.parsing.lexer.lexer.Lexer._split_to_lines (   self,
  statement 
)
private

Definition at line 159 of file lexer.py.

◆ _split_trailing_commented_and_empty_lines()

def robot.parsing.lexer.lexer.Lexer._split_trailing_commented_and_empty_lines (   self,
  statement 
)
private

Definition at line 146 of file lexer.py.

◆ _tokenize_variables()

def robot.parsing.lexer.lexer.Lexer._tokenize_variables (   self,
  tokens 
)
private

Definition at line 179 of file lexer.py.

◆ get_tokens()

def robot.parsing.lexer.lexer.Lexer.get_tokens (   self)

Definition at line 106 of file lexer.py.

◆ input()

def robot.parsing.lexer.lexer.Lexer.input (   self,
  source 
)

Definition at line 86 of file lexer.py.

Member Data Documentation

◆ data_only

robot.parsing.lexer.lexer.Lexer.data_only

Definition at line 82 of file lexer.py.

◆ lexer

robot.parsing.lexer.lexer.Lexer.lexer

Definition at line 81 of file lexer.py.

◆ statements

robot.parsing.lexer.lexer.Lexer.statements

Definition at line 84 of file lexer.py.

◆ tokenize_variables

robot.parsing.lexer.lexer.Lexer.tokenize_variables

Definition at line 83 of file lexer.py.


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