mirror of
https://gitlab.com/scemama/QCaml.git
synced 2024-08-16 17:58:29 +02:00
23 lines
416 B
OCaml
23 lines
416 B
OCaml
|
|
|
|
(* When an xyz file is read by =xyz_parser.mly=, it is converted into
|
|
* an ~xyz_file~ data structure. *)
|
|
|
|
|
|
(* [[file:../nuclei.org::*Parser][Parser:2]] *)
|
|
open Common
|
|
|
|
type nucleus =
|
|
{
|
|
element: Element.t ;
|
|
coord : Coordinate.angstrom Coordinate.point;
|
|
}
|
|
|
|
type xyz_file =
|
|
{
|
|
number_of_atoms : int ;
|
|
file_title : string ;
|
|
nuclei : nucleus list ;
|
|
}
|
|
(* Parser:2 ends here *)
|