I want to compile a docx file into a Typst file, I believe deep down docx is XML, and Typst is close to markdown with interesting functionalities, is that feasible? Note that Typst does have syntax to define functions and call them and I want to create special functions during the code gen step, is ANTLR the right tool for the job? Are there better tools? I want to have as few bugs as possible

  • sim642
    link
    fedilink
    arrow-up
    5
    ·
    3 months ago

    ANTLR is for writing parsers. You don’t need a new custom parser, just use an existing XML parser.