10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-07-17 00:20:23 +02:00
QCaml/particles/mass.org

28 lines
730 B
Org Mode
Raw Normal View History

2020-12-29 02:29:43 +01:00
#+begin_src elisp tangle: no :results none :exports none
(setq pwd (file-name-directory buffer-file-name))
(setq name (file-name-nondirectory (substring buffer-file-name 0 -4)))
(setq lib (concat pwd "lib/"))
(setq testdir (concat pwd "test/"))
(setq mli (concat lib name ".mli"))
(setq ml (concat lib name ".ml"))
(setq test-ml (concat testdir name ".ml"))
(org-babel-tangle)
#+end_src
* Atomic mass
:PROPERTIES:
:header-args: :noweb yes :comments both
:END:
Atomic mass, a non-negative float.
#+NAME: types
#+begin_src ocaml :tangle (eval mli)
include module type of Common.Non_negative_float
#+end_src
#+begin_src ocaml :tangle (eval ml) :exports none
include Common.Non_negative_float
#+end_src