2020-12-28 12:03:13 +01:00
|
|
|
#+TITLE: Gaussian
|
2021-01-28 00:34:26 +01:00
|
|
|
#+SETUPFILE: ../docs/theme.setup
|
|
|
|
|
2021-10-19 16:57:22 +02:00
|
|
|
* Summary
|
2020-12-28 12:03:13 +01:00
|
|
|
|
|
|
|
#+name: synopsis
|
2021-01-28 00:34:26 +01:00
|
|
|
#+begin_src ocaml :exports none :results value
|
2020-12-28 12:03:13 +01:00
|
|
|
"Gaussian basis sets"
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
#+RESULTS: synopsis
|
|
|
|
: Gaussian basis sets
|
|
|
|
|
|
|
|
|
|
|
|
* Dune files :noexport:
|
2021-01-28 00:34:26 +01:00
|
|
|
|
2020-12-28 12:03:13 +01:00
|
|
|
** Generate dune files
|
|
|
|
|
|
|
|
Use [C-c C-c] on the code below to create the output for the dune files
|
|
|
|
|
|
|
|
#+header: :noweb strip-export
|
2021-01-28 00:34:26 +01:00
|
|
|
#+header: :var name=(file-name-directory buffer-file-name)
|
2020-12-28 12:03:13 +01:00
|
|
|
#+header: :var dune="lib/dune"
|
|
|
|
#+header: :var dunetest="test/dune"
|
|
|
|
#+begin_src python :exports none :results output none
|
|
|
|
name = name.split('/')[-2]
|
|
|
|
synopsis = """
|
|
|
|
<<synopsis>>
|
|
|
|
"""
|
|
|
|
|
|
|
|
with open(dune,'w') as f:
|
|
|
|
f.write(f"""
|
|
|
|
(library
|
|
|
|
(name {name})
|
|
|
|
(public_name qcaml.{name})
|
|
|
|
(synopsis {synopsis} )
|
|
|
|
<<dependencies>>
|
|
|
|
<<noimplementation>>
|
|
|
|
<<c-files>>
|
|
|
|
)
|
|
|
|
<<lex-yacc>>
|
|
|
|
""")
|
|
|
|
|
|
|
|
with open(dunetest,'w') as f:
|
|
|
|
f.write(f"""
|
|
|
|
(library
|
|
|
|
(name test_{name})
|
|
|
|
(synopsis "Test for {name} library")
|
|
|
|
(libraries
|
|
|
|
alcotest
|
|
|
|
qcaml.{name}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
""")
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
** Dependencies
|
|
|
|
|
|
|
|
#+name: dependencies
|
2021-01-28 00:34:26 +01:00
|
|
|
#+begin_src elisp
|
2020-12-28 12:03:13 +01:00
|
|
|
(libraries
|
|
|
|
qcaml.common
|
|
|
|
qcaml.particles
|
|
|
|
)
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
** Modules without implementation
|
2021-01-28 00:34:26 +01:00
|
|
|
|
2020-12-28 12:03:13 +01:00
|
|
|
#+name: noimplementation
|
|
|
|
#+begin_src elisp
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
** Extra C files
|
|
|
|
|
|
|
|
#+begin_src elisp
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
** Parser files
|
|
|
|
|
|
|
|
#+name: lex-yacc
|
|
|
|
#+begin_src elisp
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-28 00:34:26 +01:00
|
|
|
|