BigBrotherBot v1.9.0
System Development Information for the BigBrotherBot project.

b3::lib::yaml::scanner::Scanner Class Reference

Inheritance diagram for b3::lib::yaml::scanner::Scanner:
b3::lib::yaml::loader::BaseLoader b3::lib::yaml::loader::Loader b3::lib::yaml::loader::SafeLoader

List of all members.

Public Member Functions

def __init__
def check_token
def peek_token
def get_token
def need_more_tokens
def fetch_more_tokens
def next_possible_simple_key
def stale_possible_simple_keys
def save_possible_simple_key
def remove_possible_simple_key
def unwind_indent
def add_indent
def fetch_stream_start
def fetch_stream_end
def fetch_directive
def fetch_document_start
def fetch_document_end
def fetch_document_indicator
def fetch_flow_sequence_start
def fetch_flow_mapping_start
def fetch_flow_collection_start
def fetch_flow_sequence_end
def fetch_flow_mapping_end
def fetch_flow_collection_end
def fetch_flow_entry
def fetch_block_entry
def fetch_key
def fetch_value
def fetch_alias
def fetch_anchor
def fetch_tag
def fetch_literal
def fetch_folded
def fetch_block_scalar
def fetch_single
def fetch_double
def fetch_flow_scalar
def fetch_plain
def check_directive
def check_document_start
def check_document_end
def check_block_entry
def check_key
def check_value
def check_plain
def scan_to_next_token
def scan_directive
def scan_directive_name
def scan_yaml_directive_value
def scan_yaml_directive_number
def scan_tag_directive_value
def scan_tag_directive_handle
def scan_tag_directive_prefix
def scan_directive_ignored_line
def scan_anchor
def scan_tag
def scan_block_scalar
def scan_block_scalar_indicators
def scan_block_scalar_ignored_line
def scan_block_scalar_indentation
def scan_block_scalar_breaks
def scan_flow_scalar

Public Attributes

 done
 flow_level
 tokens
 tokens_taken
 indent
 In flow context, tokens should respect indentation.
 indents
 allow_simple_key
 possible_simple_keys
 column
 index

Constructor & Destructor Documentation

def b3::lib::yaml::scanner::Scanner::__init__ (   self)
Initialize the scanner.

Member Function Documentation

def b3::lib::yaml::scanner::Scanner::add_indent (   self,
  column 
)
def b3::lib::yaml::scanner::Scanner::check_block_entry (   self)
def b3::lib::yaml::scanner::Scanner::check_directive (   self)
def b3::lib::yaml::scanner::Scanner::check_document_end (   self)
def b3::lib::yaml::scanner::Scanner::check_document_start (   self)
def b3::lib::yaml::scanner::Scanner::check_key (   self)
def b3::lib::yaml::scanner::Scanner::check_plain (   self)
def b3::lib::yaml::scanner::Scanner::check_token (   self,
  choices 
)
def b3::lib::yaml::scanner::Scanner::check_value (   self)
def b3::lib::yaml::scanner::Scanner::fetch_alias (   self)
def b3::lib::yaml::scanner::Scanner::fetch_anchor (   self)
def b3::lib::yaml::scanner::Scanner::fetch_block_entry (   self)
def b3::lib::yaml::scanner::Scanner::fetch_block_scalar (   self,
  style 
)
def b3::lib::yaml::scanner::Scanner::fetch_directive (   self)
def b3::lib::yaml::scanner::Scanner::fetch_document_end (   self)
def b3::lib::yaml::scanner::Scanner::fetch_document_indicator (   self,
  TokenClass 
)
def b3::lib::yaml::scanner::Scanner::fetch_document_start (   self)
def b3::lib::yaml::scanner::Scanner::fetch_double (   self)
def b3::lib::yaml::scanner::Scanner::fetch_flow_collection_end (   self,
  TokenClass 
)
def b3::lib::yaml::scanner::Scanner::fetch_flow_collection_start (   self,
  TokenClass 
)
def b3::lib::yaml::scanner::Scanner::fetch_flow_entry (   self)
def b3::lib::yaml::scanner::Scanner::fetch_flow_mapping_end (   self)
def b3::lib::yaml::scanner::Scanner::fetch_flow_mapping_start (   self)
def b3::lib::yaml::scanner::Scanner::fetch_flow_scalar (   self,
  style 
)
def b3::lib::yaml::scanner::Scanner::fetch_flow_sequence_end (   self)
def b3::lib::yaml::scanner::Scanner::fetch_flow_sequence_start (   self)
def b3::lib::yaml::scanner::Scanner::fetch_folded (   self)
def b3::lib::yaml::scanner::Scanner::fetch_key (   self)
def b3::lib::yaml::scanner::Scanner::fetch_literal (   self)
def b3::lib::yaml::scanner::Scanner::fetch_more_tokens (   self)
def b3::lib::yaml::scanner::Scanner::fetch_plain (   self)
def b3::lib::yaml::scanner::Scanner::fetch_single (   self)
def b3::lib::yaml::scanner::Scanner::fetch_stream_end (   self)
def b3::lib::yaml::scanner::Scanner::fetch_stream_start (   self)
def b3::lib::yaml::scanner::Scanner::fetch_tag (   self)
def b3::lib::yaml::scanner::Scanner::fetch_value (   self)
def b3::lib::yaml::scanner::Scanner::get_token (   self)
def b3::lib::yaml::scanner::Scanner::need_more_tokens (   self)
def b3::lib::yaml::scanner::Scanner::next_possible_simple_key (   self)
def b3::lib::yaml::scanner::Scanner::peek_token (   self)
def b3::lib::yaml::scanner::Scanner::remove_possible_simple_key (   self)
def b3::lib::yaml::scanner::Scanner::save_possible_simple_key (   self)
def b3::lib::yaml::scanner::Scanner::scan_anchor (   self,
  TokenClass 
)
def b3::lib::yaml::scanner::Scanner::scan_block_scalar (   self,
  style 
)
def b3::lib::yaml::scanner::Scanner::scan_block_scalar_breaks (   self,
  indent 
)
def b3::lib::yaml::scanner::Scanner::scan_block_scalar_ignored_line (   self,
  start_mark 
)
def b3::lib::yaml::scanner::Scanner::scan_block_scalar_indentation (   self)
def b3::lib::yaml::scanner::Scanner::scan_block_scalar_indicators (   self,
  start_mark 
)
def b3::lib::yaml::scanner::Scanner::scan_directive (   self)
def b3::lib::yaml::scanner::Scanner::scan_directive_ignored_line (   self,
  start_mark 
)
def b3::lib::yaml::scanner::Scanner::scan_directive_name (   self,
  start_mark 
)
def b3::lib::yaml::scanner::Scanner::scan_flow_scalar (   self,
  style 
)
def b3::lib::yaml::scanner::Scanner::scan_tag (   self)
def b3::lib::yaml::scanner::Scanner::scan_tag_directive_handle (   self,
  start_mark 
)
def b3::lib::yaml::scanner::Scanner::scan_tag_directive_prefix (   self,
  start_mark 
)
def b3::lib::yaml::scanner::Scanner::scan_tag_directive_value (   self,
  start_mark 
)
def b3::lib::yaml::scanner::Scanner::scan_to_next_token (   self)
def b3::lib::yaml::scanner::Scanner::scan_yaml_directive_number (   self,
  start_mark 
)
def b3::lib::yaml::scanner::Scanner::scan_yaml_directive_value (   self,
  start_mark 
)
def b3::lib::yaml::scanner::Scanner::stale_possible_simple_keys (   self)
def b3::lib::yaml::scanner::Scanner::unwind_indent (   self,
  column 
)

Member Data Documentation

In flow context, tokens should respect indentation.

Actually the condition should be `self.indent >= column` according to the spec. But this condition will prohibit intuitively correct constructions such as key : { } if self.flow_level and self.indent > column: raise ScannerError(None, None, "invalid intendation or unclosed '[' or '{'", self.get_mark())


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties