Open mtullsen opened 3 years ago
This panic happens because --compile-hs
does not support external primitives and the PDF spec uses them. Currently, to compile a grammar that uses external primitives you have to write a small Haskell program that specifies how to generate code for the primitives. For an example, that program for pdf-cos
is in: pdf-cos/generator/Main.hs
Compiling the Pdf spec in the repo causes a daedalus panic:
It appears the .ddl is bad/incomplete. The panic occurs in previous versions of pdf-cos/spec/PdfDecl.ddl, I need to revert (the spec) back to 1430ec64 to get a clean run: