MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / parse_pattern

Function parse_pattern

preprocessor/docopt.py:369–374  ·  view source on GitHub ↗
(source, options)

Source from the content-addressed store, hash-verified

367
368
369def parse_pattern(source, options):
370 tokens = Tokens.from_pattern(source)
371 result = parse_expr(tokens, options)
372 if tokens.current() is not None:
373 raise tokens.error('unexpected ending: %r' % ' '.join(tokens))
374 return Required(*result)
375
376
377def parse_expr(tokens, options):

Callers 1

docoptFunction · 0.85

Calls 4

parse_exprFunction · 0.85
RequiredClass · 0.85
from_patternMethod · 0.80
currentMethod · 0.80

Tested by

no test coverage detected