Skip to content

Add visitor - #66

Merged
bakkot merged 2 commits into
masterfrom
visitor
May 8, 2020
Merged

Add visitor#66
bakkot merged 2 commits into
masterfrom
visitor

Conversation

@bakkot

@bakkot bakkot commented Apr 30, 2020

Copy link
Copy Markdown
Member

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

bakkot commented May 3, 2020

Copy link
Copy Markdown
Member Author

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