Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Notgnoshi/generative
/ tokenize
Function
tokenize
tests/test_grammar.py:12–13 ·
view source on GitHub ↗
(s: str)
Source
from the content-addressed store, hash-verified
10
11
12
def
tokenize(s: str):
13
return
[Token(c)
for
c in s]
14
15
16
class
ContextFreeParsing(unittest.TestCase):
Callers
15
test_apply_rules_a
Method · 0.70
test_apply_rules_b
Method · 0.70
test_rewrite_a
Method · 0.70
test_rewrite_b
Method · 0.70
test_rewrite_abaa
Method · 0.70
test_rewrite_ab
Method · 0.70
test_loop
Method · 0.70
setUp
Method · 0.70
test_pick_rule_a
Method · 0.70
test_pick_rule_b
Method · 0.70
test_pick_rule_c
Method · 0.70
test_left_context
Method · 0.70
Calls
1
Token
Class · 0.90
Tested by
no test coverage detected