dralletje / Notebook-Experiments

Playing around with notebook software
lezer-playground.vercel.app
32 stars 2 forks source link

lezer playground - improvements #1

Open adminy opened 1 year ago

adminy commented 1 year ago

Amazing playground, fun to be had with it.

I like how the tree on the right highlights where in the source code on the left.

I want to push this further, also highlighting the rules used to parse this tree part.

Possibly even highlight what highlights its using as that is part of the 4th column.

Highlighting is very useful, lezer is capable of parsing it in steps rather than all at once and I was wondering if also we could have a step through buttons to interactively parse.

Also I work off a small screen sometimes and I've come to realise that it'd be better suited to have tabs instead of the 4 split view, and if we have tabs then you can have a 5th column for yet another purpose.

I know I'm being slightly ambitious but let me know if any of these you'd also be willing to help with.

Thank you.

dralletje commented 1 year ago

Hey! Thanks for the feedback. I am a bit burnt out on the lezer playground still, spent a little too many nights while building it ;) But after some time I'd definitely add some features. So I do love to discuss the features!

One feature I am looking forward to making, also because I want to understand lezer itself better, is the parsing process. But that wouldn't be the incremental parsing you refer to here:

lezer is capable of parsing it in steps rather than all at once and I was wondering if also we could have a step through buttons to interactively parse.

But it would be showing the different branches the parser is deciding between. This would be a pretty big project though, as lezer doesn't expose it's inner workings (yet).