Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
stavros
· 1y ago · 0 comments
You're actually applying a grammar to the token. If you're outputting, for example, JSON, you know what characters are valid next (because of the grammar), so you just filter out the tokens that don't fit the grammar.
Comments
[–]
joshred
1y ago
How do you get the alternate tokens?