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

Object model #41

Open
julianhyde opened this issue May 2, 2022 · 1 comment
Open

Object model #41

julianhyde opened this issue May 2, 2022 · 1 comment

Comments

@julianhyde
Copy link
Collaborator

julianhyde commented May 2, 2022

Add an object model for Quidem. This will allow applications to parse a Quidem file into a sequence of commands and sections, process those elements, and write out a new Quidem file.

The object model is in the style of a streaming push parser. The parser reads a document, and calls an appropriate method on interface EventHandler for each element (event). For parsing, the user writes their own implementation of EventHandler with a method to handle each type of event. For writing, Quidem provides an implementation of EventHandler that converts the events is receives into a document string.

@julianhyde
Copy link
Collaborator Author

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