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

Use Common Parse Tree Nodes #12

Closed
Andrei15193 opened this issue May 24, 2020 · 0 comments
Closed

Use Common Parse Tree Nodes #12

Andrei15193 opened this issue May 24, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Andrei15193
Copy link
Owner

Currently, the parse result is specific to the Creole parser right now which calls specific methods on the visitor. This can be further improved by having a common Parse Tree representation that accepts the visitor. The Parse Tree Nodes act as method selectors for the visitor where the visitor is responsible for traversing the tree by calling Accept(this); on child nodes which will in turn select the specific method from the visitor.

This will enable the parse tree to be reused between parsers (Creole, Markdown etc.) combined with the visitors which can generate different results (HTML, XML, JSON etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant