Skip to content

OCaml ppx to include binary data from a file as a string

License

Notifications You must be signed in to change notification settings

andreas/ppx_blob

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ppx_blob

OCaml ppx to include a binary blob from a file as a string. Writing [%blob "filename"] will replace the string with the contents of the file at compile time. This allows the inclusion of arbitary, possibly compressed, data, without the need to respect OCaml's lexical conventions.

To build

Requires OCaml 4.02 or above.

Run make in the top directory. Then run make in the examples directory. Now run the quine executable.

To install

Run make install in the top directory once make has been run.

About

OCaml ppx to include binary data from a file as a string

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • OCaml 74.3%
  • Makefile 25.7%