MCPcopy
hub / github.com/Textualize/textual / parse

Method parse

tests/test_parser.py:8–13  ·  view source on GitHub ↗
(self, on_token)

Source from the content-addressed store, hash-verified

6 """A simple parser that reads a byte at a time from a stream."""
7
8 def parse(self, on_token):
9 while True:
10 data = yield self.read1()
11 if not data:
12 break
13 on_token(data)
14
15 test_parser = TestParser()
16 test_data = "Where there is a Will there is a way!"

Callers 15

test_borderFunction · 0.45
test_paddingFunction · 0.45
test_padding_borderFunction · 0.45
test_outlineFunction · 0.45
test_cropFunction · 0.45
test_dirty_cacheFunction · 0.45
test_border_render_rowFunction · 0.45
test_render_border_labelFunction · 0.45
test_resolveFunction · 0.45
test_border_importanceFunction · 0.45
test_outline_importanceFunction · 0.45
test_color_parseFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected