{"id":15774004,"url":"https://github.com/snowfallorg/sleet","last_synced_at":"2025-03-14T05:32:12.076Z","repository":{"id":178495160,"uuid":"661922564","full_name":"snowfallorg/sleet","owner":"snowfallorg","description":"A Nix parser written in TypeScript","archived":false,"fork":false,"pushed_at":"2023-11-11T04:36:14.000Z","size":1336,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T02:36:00.083Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/snowfallorg.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":"2023-07-04T01:33:21.000Z","updated_at":"2024-12-17T14:08:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"23334f89-43c6-4f47-9bf0-0f6eb4f18acd","html_url":"https://github.com/snowfallorg/sleet","commit_stats":null,"previous_names":["snowfallorg/sleet"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowfallorg%2Fsleet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowfallorg%2Fsleet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowfallorg%2Fsleet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowfallorg%2Fsleet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snowfallorg","download_url":"https://codeload.github.com/snowfallorg/sleet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243532517,"owners_count":20306151,"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-04T16:04:22.661Z","updated_at":"2025-03-14T05:32:11.562Z","avatar_url":"https://github.com/snowfallorg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snowfall Sleet\n\n\u003ca href=\"https://nixos.wiki/wiki/Flakes\" target=\"_blank\"\u003e\n\t\u003cimg alt=\"Nix Flakes Ready\" src=\"https://img.shields.io/static/v1?logo=nixos\u0026logoColor=d8dee9\u0026label=Nix%20Flakes\u0026labelColor=5e81ac\u0026message=Ready\u0026color=d8dee9\u0026style=for-the-badge\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/snowfallorg/lib\" target=\"_blank\"\u003e\n\t\u003cimg alt=\"Built With Snowfall\" src=\"https://img.shields.io/static/v1?label=Built%20With\u0026labelColor=5e81ac\u0026message=Snowfall\u0026color=d8dee9\u0026style=for-the-badge\"\u003e\n\u003c/a\u003e\n\n\u003cp\u003e\n\u003c!--\n\tThis paragraph is not empty, it contains an em space (UTF-8 8195) on the next line in order\n\tto create a gap in the page.\n--\u003e\n  \n\u003c/p\u003e\n\n\u003e A Nix parser written in TypeScript.\n\n## Usage\n\n### Lexer\n\nTo use the lexer, import the `Lexer` class and create a new instance.\n\n```ts\nimport { Lexer } from \"@snowfallorg/sleet\";\n\nconst lexer = new Lexer();\n\nconst tokens = lexer.lex(\"let x = 4; in x\");\n```\n\n### Parser\n\nTo use the parser, import the `Parser` class and create a new instance.\n\n```ts\nimport { Parser } from \"@snowfallorg/sleet\";\n\nconst parser = new Parser();\n\nconst ast = parser.parse(\"let x = 4; in x\");\n```\n\n## Implementation\n\nThis parser is not resilient. On any malformed input, Sleet will throw an error. This\nmay change in the future, but for now you should know that resilient parsing is not\na part of this library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowfallorg%2Fsleet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowfallorg%2Fsleet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowfallorg%2Fsleet/lists"}