quidem icon indicating copy to clipboard operation
quidem copied to clipboard

Object model

Open julianhyde opened this issue 2 years ago • 0 comments

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 avatar May 02 '22 19:05 julianhyde