Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout and trivia #7

Open
9 tasks
Virtlink opened this issue Sep 14, 2016 · 0 comments
Open
9 tasks

Layout and trivia #7

Virtlink opened this issue Sep 14, 2016 · 0 comments

Comments

@Virtlink
Copy link
Owner

Virtlink commented Sep 14, 2016

Implement layout and trivia that can optionally be ignored in the red view of the green tree.

Note: Annotations will not contain trivia, or if they do, there is no special support for filtering them.

  • Add Trivia term type.
  • Add new property to red terms that shows the subterms including trivia.
  • Change getChildren of the red terms to only show the non-trivia terms.
  • Ensure the number of non-trivia terms matches the arity of the constructor.
  • Fix NameAgePair, it has to use dynamic indices (because there may be arbitrary trivia in the subterms).
  • Write example for traversing trivia.
  • Write example for inserting/removing trivia.
  • Write example to show how trivia helps reconstructing the original source.
  • Write test for children with trivia.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant