MCPcopy Create free account
hub / github.com/Notgnoshi/generative / _interpret

Method _interpret

generative/lsystem/interpreter.py:70–74  ·  view source on GitHub ↗
(self, tokens: Tokens)

Source from the content-addressed store, hash-verified

68 yield line
69
70 def _interpret(self, tokens: Tokens) -> Lines:
71 if self.commandset == "default":
72 yield from self._interpret_default(tokens)
73 else:
74 raise ValueError(f"commandset '{self.commandset}' unsupported")
75
76 def _flush_active_line(self) -> LineString:
77 if not self.active_line or not self.drawing:

Callers 1

interpretMethod · 0.95

Calls 1

_interpret_defaultMethod · 0.95

Tested by

no test coverage detected