{"id":16879484,"url":"https://github.com/purefunctor/ocaml-jsoo-parse","last_synced_at":"2026-05-11T03:47:32.845Z","repository":{"id":110141367,"uuid":"435513140","full_name":"purefunctor/ocaml-jsoo-parse","owner":"purefunctor","description":"An example of a menhir/ocamllex-based parser compiled to JavaScript using js_of_ocaml.","archived":false,"fork":false,"pushed_at":"2021-12-06T15:58:06.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T06:41:21.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purefunctor.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-12-06T13:45:55.000Z","updated_at":"2021-12-06T15:58:10.000Z","dependencies_parsed_at":"2023-04-04T02:01:16.518Z","dependency_job_id":null,"html_url":"https://github.com/purefunctor/ocaml-jsoo-parse","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"02c8f662aa0bb2cb5b9ee40886f50afbafcf8df3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purefunctor%2Focaml-jsoo-parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purefunctor%2Focaml-jsoo-parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purefunctor%2Focaml-jsoo-parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purefunctor%2Focaml-jsoo-parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purefunctor","download_url":"https://codeload.github.com/purefunctor/ocaml-jsoo-parse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244554125,"owners_count":20471173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T15:54:35.196Z","updated_at":"2026-05-11T03:47:27.820Z","avatar_url":"https://github.com/purefunctor.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"* ocaml-jsoo-parse\nAn example of a =menhir= / =ocamllex= -based parser compiled to JavaScript using\n=js_of_ocaml=. Exposes a =parse= function that outputs the JSON representation of the AST type\ndefined in OCaml code. This makes it possible to deserialize the value into another representation,\nsuch as an equivalent data type in PureScript.\n\n** Usage\nEnsure that you have an OCaml and Node.js installation.\n#+begin_src sh\n$ dune build\n...\n\n$ node\nWelcome to Node.js v16.13.0.\nType \".help\" for more information.\n \u003e const { parse } = require(\"./_build/default/bin/main.bc.js\")\nundefined\n \u003e parse(\"0 - 0 + 1 + 1 * (10 / 10 - 10)\")\n'[1,0,[1,0,[1,1,[0,0],[0,0]],[0,1]],[1,2,[0,1],[1,1,[1,3,[0,10],[0,10]],[0,10]]]]'\n \u003e \n#+end_src\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurefunctor%2Focaml-jsoo-parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurefunctor%2Focaml-jsoo-parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurefunctor%2Focaml-jsoo-parse/lists"}