Open geo2a opened 1 year ago
It would be nice to have a fallback additional-args
parameter taking parameters not yet supported by kbuild, for example, I'd also like LLVM's --enable-search
to be passed to kompile.
It would be nice to have a fallback
additional-args
parameter taking parameters not yet supported bykbuild
It's a deliberate choice such a parameter is not exposed (not only on kbuild
, but also on functions in pyk.ktool
). We used to have that option e.g. on kompile
, and it turned out to be such a convenient workaround that people just used that instead of opening an issue, preventing tooling to evolve in the right direction.
@tothtamas28 I guess we'll need to build the bison parsers to try inner parsing anyway?
I guess we'll need to build the bison parsers to try inner parsing anyway?
I think so.
Right now a kbuild
target is a kompiled definition specifically, but it's a good idea to extend that notion to other resources (native bindings, parsers, etc.)
The
kbuild
tool should be able to generate Bison parsers.See this PR to
mir-semantics
for motivation: https://github.com/runtimeverification/mir-semantics/pull/66Interface
The target should look something like this:
That should generate the
parser_Mir_MIR-SYNTAX
binary.Implementation
To fulfill the target,
kbuild
should encapsulate the following call tokast
(I currently implement it a pytest fixture):