On 31/12/17 07:59, Stephan Eggermont wrote:
Offray Vladimir Luna Cárdenas <offray.luna@mutabit.com> wrote:
Pandoc consists of a set of readers and writers. When converting a document from one format to another, text is parsed by a reader into pandocâs intermediate representation of the documentâan âabstract syntax treeâ or ASTâwhich is then converted by the writer into the target format. The pandoc AST format is defined in the module |Text.Pandoc.Definition| in pandoc-types <https://hackage.haskell.org/package/pandoc-types>.
A âfilterâ is a program that modifies the AST, between the reader and the writer:
|INPUT --reader--> AST --filter--> AST --writer--> OUTPUT|
Filters are âpipesâ that read from standard input and write to standard output. Perhaps just reading the original Pier and Magritte thesis work by Lukas Renggli would be helpful then. Anything new or better in Pandoc?
Stephan
I will read it. Knowing that both, Pandoc and Pillar share kind of a similar approach would allow me to connect their AST (I mentioned such idea before, but now the path is more clear). The issue I care in this case is not about hot new stuff, but about bridges between cultural practices, ie, people who is using LMLs for documentation and discussing them extensively and people in the Pharo community. I need such bridges myself and I know enough people that could use them. Cheers, Offray