Package pyfics :: Package parser :: Module dummyparser
[hide private]

Module dummyparser

source code

pyfics dummy parser

This module is provided as an example and for test usage.

Functions [hide private]
 
on_login()
Callback function for login
source code
 
on_password()
Callback function for password
source code
 
parse(line)
parse function for IcsParsingProtocol
source code
Variables [hide private]
pyparsing.Literal login = "login: "
login parser
pyparsing.Literal password = "password: "
password parser
pyparsing.Literal unknown = Re:('.*')
parser to match the rest
pyparsing.Literal auth = {{"login: " | "password: "} | Re:('.*')}
parser used while authentication
pyparsing.Literal parser = Re:('.*')
parser used after authentication
  mainparser = {{"login: " | "password: "} | Re:('.*')}