{"id":14966114,"url":"https://github.com/altai-man/asn-meta","last_synced_at":"2026-02-18T23:02:24.373Z","repository":{"id":74299445,"uuid":"165694164","full_name":"Altai-man/ASN-META","owner":"Altai-man","description":"Experimental ASN.1 spec \"evaluator\" for Raku","archived":false,"fork":false,"pushed_at":"2021-04-01T21:14:34.000Z","size":26,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-20T07:51:54.958Z","etag":null,"topics":["asn1","metaprogramming","perl6","perl6-module","raku","raku-module","rakulang"],"latest_commit_sha":null,"homepage":"","language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Altai-man.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-01-14T16:26:57.000Z","updated_at":"2022-10-25T19:54:53.000Z","dependencies_parsed_at":"2023-04-25T15:31:01.375Z","dependency_job_id":null,"html_url":"https://github.com/Altai-man/ASN-META","commit_stats":{"total_commits":30,"total_committers":3,"mean_commits":10.0,"dds":0.09999999999999998,"last_synced_commit":"a2318922adde8c39b36fd677cb780406ba6d527a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Altai-man/ASN-META","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altai-man%2FASN-META","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altai-man%2FASN-META/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altai-man%2FASN-META/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altai-man%2FASN-META/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Altai-man","download_url":"https://codeload.github.com/Altai-man/ASN-META/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altai-man%2FASN-META/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29597854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T22:25:43.180Z","status":"ssl_error","status_checked_at":"2026-02-18T22:25:42.766Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["asn1","metaprogramming","perl6","perl6-module","raku","raku-module","rakulang"],"created_at":"2024-09-24T13:35:50.622Z","updated_at":"2026-02-18T23:02:24.355Z","avatar_url":"https://github.com/Altai-man.png","language":"Raku","funding_links":[],"categories":[],"sub_categories":[],"readme":"### ASN::META\n\nExperimental Raku module that is able to compile [ASN.1](https://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One) specification into set of Raku types.\n\n#### What ASN::META does not?\n\n* It does not generate Raku code (at least, textual form).\n* The module knows nothing about ASN.1 encoding means, it purely generates Raku types.\n  For this purpose a separate module may be used. Currently, goal is to have full compatibility\n  with [ASN::BER](https://github.com/Altai-man/ASN-BER) module.\n\n#### What ASN::META does?\n\nMain workflow is as follows:\n\n* A specification is passed to ASN::META on module `use`\n* (internally, `ASN::Grammar` is used to parse the specification)\n* ASN::META uses parsed specification to generate appropriate types with [MOP](https://docs.perl6.org/language/mop)\n* Generated types for particular ASN.1 specification are precompiled and exported\n\n#### What it does?\n\n#### Synopsis\n\n```perl6\n# In file `schema.asn`:\nWorldSchema\n\nDEFINITIONS IMPLICIT TAGS ::= BEGIN\nRocket ::= SEQUENCE\n{\n   name      UTF8String,\n   message   UTF8String DEFAULT \"Hello World\",\n   fuel      ENUMERATED {\n       solid(0),\n       liquid(1),\n       gas(2)\n   },\n   speed     CHOICE {\n      mph    [0] INTEGER,\n      kmph   [1] INTEGER\n   }  OPTIONAL,\n   payload   SEQUENCE OF UTF8String\n}\nEND\n\n# In file `User.pm6`:\n# Note usage of BEGIN block to gather file's content at compile time\nuse ASN::META BEGIN [ 'file', slurp 'schema.asn' };\n# In case of re-compilation on dependency change, package User may be\n# re-built from the place where local paths are useless, in this case use %?RESOURCES:\n# `use ASN::META BEGIN { 'file', slurp %?RESOURCES\u003cschema.asn\u003e }`\n\n# `Rocket` type is exported by ASN::META\nmy Rocket $rocket = Rocket.new(name =\u003e 'Rocker', :fuel(solid),\n        speed =\u003e Speed.new((mph =\u003e 9001)),\n        payload =\u003e Array[Str].new('A', 'B', 'C'));\n\n\n# As well as inner types being promoted to top level:\nsay Fuel;  # generated enum\nsay solid; # value of this enum, (solid ~~ Fuel) == true\nsay Speed; # Generated type based on ASNChoice from ASN::BER\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltai-man%2Fasn-meta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltai-man%2Fasn-meta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltai-man%2Fasn-meta/lists"}