Open disconcision opened 2 weeks ago
hmm that's unexpected. let's see if we can work around it for now. try calling Labeler.label
on the string to get a list(Token.Unmolded.t)
, each of which will have a .text
field to get the individual lexeme text to pass with the Insert
action.
It works! with some caveats. still can't parse expressions with nested expanding kw forms due to #42, eg:
parse("let f = fun z -> 9 in f(9)")
results in
i tried working around this by having multiple spaces in the parse string but it doesn't work
cool. looking at #42 now.
Trying to parse whole expressions from strings. simple infix sequences and parens seem to work, but nothing else.
If I try to do
Edit.perform(Insert("let x "), Zipper.empty)
I get "let >< x" (infix grout), and if I tryEdit.perform(Insert("let x ="), Zipper.empty)
it crashes with:not totally sure this is actually supported... should i be dividing into tokens and feed it in iteratively?