| 123456789101112131415161718192021222324252627282930313233343536 | 
							- import { project } from "./project.js";
 
- import { element } from "./element.js";
 
- import { elements_list } from "./elements_list.js";
 
- import { submission } from "./submission.js";
 
- import { parser } from "./parser.js";
 
- class database {
 
-     #project;
 
-     constructor(content) {
 
-         if (!(content instanceof Object)) {
 
-             throw "Content to into database from must be an object.";
 
-         }
 
-         this.#load(content);
 
-     }
 
-     #load(content) {
 
-         const loader = new parser(content, "root");
 
-         this.#project = this.#parse_project(loader.get_parser("project"));
 
-     }
 
-     #parse_project(content) {
 
-         const name = content.get("name");
 
-         let description = "";
 
-         if (content.exists("description")) {
 
-             description = content.get("description");
 
-         }
 
-         return new project(name, description);
 
-     }
 
- }
 
- export { database };
 
 
  |