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

Add visitor #66

Merged
merged 2 commits into from
May 8, 2020
Merged

Add visitor #66

merged 2 commits into from
May 8, 2020

Conversation

bakkot
Copy link
Contributor

@bakkot bakkot commented Apr 30, 2020

This adds a basic visitor under visitor.ts. It also splits the ordered and unordered list item types and prevents parsing lists which mix the two (which was presumably a bug, though I haven't added a test). Not anymore; apparently that was intentional. Not entirely what we want to do here - probably allow mixing, and lint against it.

Based on #59 and marked as a draft until that PR is landed. Edit: ready to go.

@bakkot bakkot changed the base branch from more-position to master May 3, 2020 00:26
@bakkot bakkot marked this pull request as ready for review May 3, 2020 00:26
@bakkot
Copy link
Contributor Author

bakkot commented May 3, 2020

OK, the "prevents parsing lists which mix the two" bit actually does break tests. I'm not sure what the right behavior is here.

Edit: just reverted back to the original behavior for now.

@bakkot bakkot changed the title Add visitor, export parseAlgorithm Add visitor May 7, 2020
@bakkot bakkot merged commit 5e7be11 into master May 8, 2020
@bakkot bakkot deleted the visitor branch May 8, 2020 20:48
@bakkot bakkot mentioned this pull request May 9, 2020
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

Successfully merging this pull request may close these issues.

2 participants