summaryrefslogtreecommitdiff
path: root/src/Language/Fiddle/Compiler/Backend/Internal
Commit message (Collapse)AuthorAge
* Finish implementing alpha-version of the C-backend.Josh Rahm2024-10-27
| | | | | | This produces valid C code in a header file and also provides an INTF macro which makes it much less obtuse to call the various functions to set and unset bitfields.
* Add framework for more easily editing files.Josh Rahm2024-10-16
This introduces the FilesM monad, which allows for monadic and fragmented writing to files in a filesystem. This provides an abstraction over writing to different "fragments" of files so implementation, headers and declarations can all be written using just one pass of the compiler.