ccomparini / fpl2cc

fpl parser generator language
https://ccomparini.github.io/fpl2cc/
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

generated fpl depends on src/fpl2cc/fpl_reader.h and files in src/util #1

Closed ccomparini closed 7 months ago

ccomparini commented 7 months ago

Generated fpl #includes various local .h files.

This wasn't the end of the world when fpl was part of the jest project and all those were available, but it's obviously broken for general use.

There's a partial fix on branch embed_headers e70a9639, but it also fails because it only embeds one layer of inclusion. src/util headers include each other, in some cases.

Maybe jempify everything?

ccomparini commented 7 months ago

I'm calling this fixed as of 866e065edc .

It's a several step fix, but basically was adding @embed@ to jemp and then using it to embed the headers when compiling fpl2cc.