Closed hackedy closed 1 year ago
Right now it's just compiler passes, not evaluation, and I haven't tried to iron any bugs out yet.
The "p4flat" IR does not exist yet but I know what I want it to look like (sort of like Inline.v from the GCL compiler but with declarations).
TODOs
I think this is fully baked now.
This PR makes the petr4.exe command-line interface more uniform and hopefully more understandable. I've created -output-LANG flags for each IR which accept a filename as argument and choose what kind of pretty printer to use based on the extension of the filename. So if you write
-output-p4light file.v
you get a Gallina version of the AST, but-output-p4light file.p4
will print concrete P4 syntax.