{"id":33237128,"url":"https://github.com/ruricolist/cl-shlex","last_synced_at":"2026-02-16T03:34:52.051Z","repository":{"id":142818125,"uuid":"198733423","full_name":"ruricolist/cl-shlex","owner":"ruricolist","description":"Simple lexical analyzer for shell-like syntaxes","archived":false,"fork":false,"pushed_at":"2021-03-01T22:06:27.000Z","size":19,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-19T05:36:40.101Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Common Lisp","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/ruricolist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-07-25T01:23:25.000Z","updated_at":"2024-05-16T21:04:43.000Z","dependencies_parsed_at":"2023-04-13T16:16:22.885Z","dependency_job_id":null,"html_url":"https://github.com/ruricolist/cl-shlex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ruricolist/cl-shlex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruricolist%2Fcl-shlex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruricolist%2Fcl-shlex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruricolist%2Fcl-shlex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruricolist%2Fcl-shlex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruricolist","download_url":"https://codeload.github.com/ruricolist/cl-shlex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruricolist%2Fcl-shlex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27758422,"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","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-11-16T19:00:28.322Z","updated_at":"2025-12-16T02:01:56.495Z","avatar_url":"https://github.com/ruricolist.png","language":"Common Lisp","funding_links":[],"categories":["Online editors ##"],"sub_categories":["Third-party APIs"],"readme":"A lexer for syntaxes that use shell-like rules for quoting and commenting. It is a port of the `shlex` module from Python’s standard library.\n\nThe point of entry is `split`:\n\n    (shlex:split \"a 'b c' \\\"d e\\\" \\\"f ' g\\\"\")\n    =\u003e '(\"a\" \"b c\" \"d e\" \"f ' g\")\n\nFor a parse that is closer to a shell, you can pass the `:punctuation-chars` keyword:\n\n    ;; Not what you want.\n    (shlex:split \"a \u0026\u0026 b; c \u0026\u0026 d || e; f \u003e'abc'; (def \\\"ghi\\\")\")\n    =\u003e '(\"a\" \"\u0026\u0026\" \"b;\" \"c\" \"\u0026\u0026\" \"d\" \"||\" \"e;\" \"f\" \"\u003eabc;\" \"(def\" \"ghi)\")\n\n    (shlex:split \"a \u0026\u0026 b; c \u0026\u0026 d || e; f \u003e'abc'; (def \\\"ghi\\\")\" :punctuation-chars t)\n    =\u003e (\"a\" \"\u0026\u0026\" \"b\" \";\" \"c\" \"\u0026\u0026\" \"d\" \"||\" \"e\" \";\" \"f\" \"\u003e\" \"abc\" \";\" \"(\" \"def\" \"ghi\" \")\")\n\nIf you would rather iterate over each token in turn, you can use `shlex:map-tokens` or `shlex:do-tokens` instead.\n\n    ;; Print each token in STRING.\n    (shlex:map-tokens #'print string :punctuation-chars t)\n\n    ;; Do the same thing with a macro.\n    (shlex:do-tokens (token (string :punctuation-chars t))\n      (print token))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruricolist%2Fcl-shlex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruricolist%2Fcl-shlex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruricolist%2Fcl-shlex/lists"}