{"id":17383005,"url":"https://github.com/colis-anr/morbig","last_synced_at":"2025-04-08T04:19:35.627Z","repository":{"id":26442856,"uuid":"107104296","full_name":"colis-anr/morbig","owner":"colis-anr","description":"A static parser for POSIX Shell","archived":false,"fork":false,"pushed_at":"2023-12-20T04:35:56.000Z","size":1058,"stargazers_count":194,"open_issues_count":34,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-24T08:42:58.889Z","etag":null,"topics":["concrete-syntax-trees","ocaml","ocaml-library","parse","parsing","posix","posix-sh","shell","shell-script","shell-scripts"],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/colis-anr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-16T09:08:25.000Z","updated_at":"2025-02-23T05:43:38.000Z","dependencies_parsed_at":"2025-01-02T16:16:37.135Z","dependency_job_id":null,"html_url":"https://github.com/colis-anr/morbig","commit_stats":{"total_commits":713,"total_committers":11,"mean_commits":64.81818181818181,"dds":0.5231416549789621,"last_synced_commit":"b97a5be622a7b5539f43617e74bf9cccad1d58b9"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colis-anr%2Fmorbig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colis-anr%2Fmorbig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colis-anr%2Fmorbig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colis-anr%2Fmorbig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colis-anr","download_url":"https://codeload.github.com/colis-anr/morbig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247773726,"owners_count":20993639,"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":["concrete-syntax-trees","ocaml","ocaml-library","parse","parsing","posix","posix-sh","shell","shell-script","shell-scripts"],"created_at":"2024-10-16T07:40:12.903Z","updated_at":"2025-04-08T04:19:35.608Z","avatar_url":"https://github.com/colis-anr.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Morbig\n\n## A trustworthy static parser for POSIX shell\n\nMorbig is a parser for shell scripts written in the POSIX shell script\nlanguage. It parses the scripts statically, that is without executing\nthem, and constructs a concrete syntax tree for each of them.  The\nconcrete syntax trees are built using constructors according to the\nshell grammar of the POSIX standard.\n\n## Download ![Build Status](https://github.com/colis-anr/morbig/actions/workflows/ci.yml/badge.svg)\n\n    git clone git@github.com:colis-anr/morbig.git\n\n## License and copyright\n\nSee [COPYING](./COPYING).\n\n## Documentation\n\nFor tagged versions, you can have a look at the [official documentation]. We\nalso provide [custom documentation] for the latest development version. Finally,\nyou can always build the documentation yourself with:\n\n    make doc\n\n[official documentation]: https://ocaml.org/p/morbig/latest/doc/\n[custom documentation]: https://colis-anr.github.io/morbig/\n\n## Are you in a hurry?\n\nYes? Pull our docker image:\n\n    docker pull colisanr/morbig:latest\n\nThen, define the following shell function:\n\n    morbig () {\n      D=$(cd \"$(dirname \"$1\")\"; pwd)\n      B=$(basename \"$1\")\n      docker run \\\n        -v \"$D\":/mnt \\\n        colisanr/morbig:latest --as simple /mnt/\"$B\"\n    }\n\nAfter that, you should be able to run Morbig like this:\n\n    morbig my-script.sh\n\nThis will create a JSON file named `my-script.sh.sjson`.\n\nYou can also build a local docker image from the root of this\nrepository:\n\n    docker build -t morbig .\n\nNow if you want to use more features of Morbig, take the time to follow the\nbuilding instructions of the next section.\n\n## Manual instructions\n\n### Install using OPAM\n\nPlease type\n\n    opam install morbig\n\nto get the latest public release of Morbig.\n\nIf you want to use the development version of Morbig, read the next sections.\n\n### Dependencies\n\nMorbig depends on the following software:\n\n- dune\n- menhir\n- OCaml ≥ 4.11. Older versions might work but are not officially supported.\n- odoc (for documentation only)\n- yojson and ppx_deriving_yojson\n- visitors\n\nIn case of discrepancies on dependencies, [`dune-project`](./dune-project) is\nthe source of truth. Our continuous integration ensures that it is up-to-date.\n\n### Building\n\n    make\n\n### Installing\n\nFor OPAM-based environments:\n\n    make install\n\nFor system-wide installs:\n\n    PREFIX=... make install\n\n### Testing\n\n    make check\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolis-anr%2Fmorbig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolis-anr%2Fmorbig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolis-anr%2Fmorbig/lists"}