MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / parse

Function parse

18-with-match/lispy/original/lis.py:60–62  ·  view source on GitHub ↗

Read a Scheme expression from a string.

(program)

Source from the content-addressed store, hash-verified

58################ Parsing: parse, tokenize, and read_from_tokens
59
60def parse(program):
61 "Read a Scheme expression from a string."
62 return read_from_tokens(tokenize(program))
63
64def tokenize(s):
65 "Convert a string into a list of tokens."

Callers 2

testFunction · 0.70
replFunction · 0.70

Calls 2

read_from_tokensFunction · 0.70
tokenizeFunction · 0.70

Tested by 1

testFunction · 0.56