Closed dan-zheng closed 1 year ago
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
I think this PR is ready for review. I spent some time this week cleaning the code.
tests/unit/SourceInfoSpec.hs
could be cleaned up and could have more testcases.
I'm happy to take a look later this week, or in a follow-up PR.
Dex has a reactive notebook and literate programming environment in
dex web
.Tooltips add additional IDE information to the web environment, visible when hovering the cursor over code.
This initial PR adds infrastructure for tooltips, with parse tree visualizations as the first feature.
SpanTree
describing all nested expression spans, based on concrete syntax trees.SpanTree
to augment HTML elements with class attributes about span ranges. These span range attributes are highlighted on mouse hover.First step towards https://github.com/google-research/dex-lang/issues/1304.
Demo
dex web
Dex tooltips demo video
Exported HTML
Created via
make docs
.prelude.html behaves exactly the same as the live demo above.