{"id":13846360,"url":"https://github.com/messer-cpp/messer","last_synced_at":"2025-07-12T07:32:29.518Z","repository":{"id":216975344,"uuid":"230614195","full_name":"messer-cpp/messer","owner":"messer-cpp","description":"REPL for C preprocessor of C++17","archived":false,"fork":false,"pushed_at":"2024-01-26T01:50:24.000Z","size":131,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-02-17T10:36:35.086Z","etag":null,"topics":["cpp","cpp17","cpreprocessor","repl"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/messer-cpp.png","metadata":{"files":{"readme":"README.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-28T13:32:50.000Z","updated_at":"2024-05-30T04:34:13.962Z","dependencies_parsed_at":"2024-01-26T02:47:07.687Z","dependency_job_id":null,"html_url":"https://github.com/messer-cpp/messer","commit_stats":null,"previous_names":["messer-cpp/messer"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messer-cpp%2Fmesser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messer-cpp%2Fmesser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messer-cpp%2Fmesser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messer-cpp%2Fmesser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/messer-cpp","download_url":"https://codeload.github.com/messer-cpp/messer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225807260,"owners_count":17527221,"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":["cpp","cpp17","cpreprocessor","repl"],"created_at":"2024-08-04T18:00:30.990Z","updated_at":"2024-11-21T21:30:25.721Z","avatar_url":"https://github.com/messer-cpp.png","language":"C++","readme":"# Messer\n\nMesser is an interactive environment for evaluating C preprocessing macros conforming to C++17 standard with showing macro replacement steps.\n\n## Prerequisites\n\n- You need to install below manually:\n    - C++17 supported GNU C++ Compiler\n    - Boost\n        - Boost.Coroutine2\n        - Boost.Preprocessor\n    - `sed`\n    - `awk`\n    - `make`\n- You can get the following prerequisites as git-submodules:\n    - Veiler\n    - Linse\n\n## Build\n\n```shell-session\n$ make\n```\n\nIt takes **extremely** long time.  \nFor example, it takes 4 minutes to build messer on an AMD Ryzen7 2700X.  \nIt is recommended to take coffee while building.\n\n```\n...patience...\n...patience...\n...patience...\n```\n\n## Usage\n\nYou can input programs following the prompt (`\u003e\u003e\u003e`).  \n`#pragma step tokens` shows macro replacement steps for `tokens`.  \nYou can exit Messer with `C-d`.\n\n### Example\n\n```\n\u003e\u003e\u003e #define CAT_I(a, b) a ## b\n\u003e\u003e\u003e #define ID(x) x\n\u003e\u003e\u003e CAT_I(a, ID(b))\naID(b)\n\u003e\u003e\u003e #pragma step CAT_I(a, ID(b))\n   CAT_I(a, ID(b))\n-\u003e a ## ID(b)\n-\u003e aID(b)\n\u003e\u003e\u003e #define CAT(a, b) CAT_I(a, b)\n\u003e\u003e\u003e CAT(a, ID(b))\nab\n\u003e\u003e\u003e #pragma step CAT(a, ID(b))\n   CAT(a, ID(b))\n-\u003e CAT_I(a, ID(b))\n-\u003e CAT_I(a, b)\n-\u003e a ## b\n-\u003e ab\n\u003e\u003e\u003e \n```\n\n## License\n\nMIT License (see `LICENSE` file)\n\n### License of dependent libraries\n\nsee `LICENSES` directory.\n","funding_links":[],"categories":["Debuggers"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesser-cpp%2Fmesser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmesser-cpp%2Fmesser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesser-cpp%2Fmesser/lists"}