Exemplo n.º 1
0
Arquivo: common.py Projeto: MacLeek/mh
 def __init__(self, name, start_quote = '"', end_quote = None,
              esc_char = '\\', encoding = None, allow_eof = False):
     Construct.__init__(self, name)
     if end_quote is None:
         end_quote = start_quote
     self.start_quote = Literal(start_quote)
     self.char = Char("char")
     self.end_quote = end_quote
     self.esc_char = esc_char
     self.encoding = encoding
     self.allow_eof = allow_eof
Exemplo n.º 2
0
 def __init__(self, name = None, show_stream = True, 
              show_context = True, show_stack = True, 
              stream_lookahead = 100):
     Construct.__init__(self, None)
     if name is None:
         Probe.counter += 1
         name = "<unnamed %d>" % (Probe.counter,)
     self.printname = name
     self.show_stream = show_stream
     self.show_context = show_context
     self.show_stack = show_stack
     self.stream_lookahead = stream_lookahead
Exemplo n.º 3
0
 def __init__(self,
              name=None,
              show_stream=True,
              show_context=True,
              show_stack=True,
              stream_lookahead=100):
     Construct.__init__(self, None)
     if name is None:
         Probe.counter += 1
         name = "<unnamed %d>" % (Probe.counter, )
     self.printname = name
     self.show_stream = show_stream
     self.show_context = show_context
     self.show_stack = show_stack
     self.stream_lookahead = stream_lookahead