10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-06-29 16:34:43 +02:00
QCaml/particles/lib/xyz_ast.mli
2021-01-01 16:39:33 +01:00

23 lines
431 B
OCaml

(* When an xyz file is read by =xyz_parser.mly=, it is converted into
* an ~xyz_file~ data structure. *)
(* [[file:~/QCaml/particles/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 *)