{"id":14966023,"url":"https://github.com/perl6/std","last_synced_at":"2025-10-25T13:30:56.655Z","repository":{"id":1055752,"uuid":"888448","full_name":"perl6/std","owner":"perl6","description":"(ARCHIVE) Raku standard grammar","archived":false,"fork":false,"pushed_at":"2015-02-24T06:37:08.000Z","size":6576,"stargazers_count":71,"open_issues_count":1,"forks_count":11,"subscribers_count":164,"default_branch":"master","last_synced_at":"2025-01-31T07:12:03.609Z","etag":null,"topics":["raku"],"latest_commit_sha":null,"homepage":"https://raku.org/","language":"Perl6","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perl6.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-09-04T20:45:31.000Z","updated_at":"2024-08-26T22:38:09.000Z","dependencies_parsed_at":"2022-07-06T04:01:46.713Z","dependency_job_id":null,"html_url":"https://github.com/perl6/std","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perl6%2Fstd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perl6%2Fstd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perl6%2Fstd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perl6%2Fstd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perl6","download_url":"https://codeload.github.com/perl6/std/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238147568,"owners_count":19424285,"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":["raku"],"created_at":"2024-09-24T13:35:42.888Z","updated_at":"2025-10-25T13:30:56.147Z","avatar_url":"https://github.com/perl6.png","language":"Perl6","funding_links":[],"categories":[],"sub_categories":[],"readme":"=head1 Perl 6 Parser Stuff in the Pugs Repo\n\nWelcome to pugs/src/perl6.  This is the home of STD.pm6, the canonical\nPerl 6 grammar, which is written in Perl 6 (of course).  It is also the\nhome of viv, a retargettable Perl 6 metacompiler which can translate\nSTD.pm6 into Perl 5 (and eventually other things).  The metacompiler\nrelies on STD.pm6 to parse itself, requiring a stored bootstrap version\nof the compiled STD.pm.  This is also the home of Cursor, the canonical\nimplementation of the Perl 6 rules engine; it co-evolves with viv and\nexecutes the actual rules.  This is also the home of a collection of\nminor tools used in the development of STD.pm6 and viv.\n\n=head1 Prerequisites\n\nYou'll need the following Perl bits to run stuff:\n\n* Perl 5.10.0 or later in PATH\n\n* YAML::XS       (e.g. sudo apt-get install libyaml-libyaml-perl)\n\n* Moose          (e.g. sudo apt-get install libmoose-perl)\n\n* File::ShareDir\n\n=head1 Running Stuff\n\nYou can get started by using the Makefile command, C\u003cmake\u003e.  This will convert\nthe Perl 6 grammar into a Perl 5 module, C\u003cSTD\u003e.  C\u003cSTD\u003e has a fairly simple\nAPI; just call C\u003cparse\u003e as a class method with the source you want to parse as\na parameter, and look at the result.  Another module, C\u003cActions\u003e, is provided\nwhich converts C\u003cSTD\u003e's output into a more object-oriented form; see C\u003cviv\u003e's\nsource for an example of the latter's use.  (Both methods have more options\nwhen you need them.)\n\nThe following tools are provided which leverage the power of C\u003cSTD\u003e:\n\n* C\u003ctryfile\u003e parses a file of Perl 6 code and reports 'ok' or 'FAILED', plus the\n  time taken and memory used.\n\n* C\u003cstd\u003e does the same, but also tests Actions.\n\n* C\u003credspans\u003e parses a file, reporting what rules matched which tokens.\n\n* C\u003creds\u003e appears to be an older, non-working version of redspans.\n\n* C\u003cteststd\u003e uses STD to check the syntax of the Perl 6 Specification Tests.\n\n* C\u003ctloop\u003e is an interactive STD syntax checker.\n\n* C\u003cvill\u003e is a prototype STD-based LLVM-based Perl 6 JIT compiler.\n\n* C\u003cviv\u003e is a retargettable metacompiler for the static subset of Perl 6.\n\n* C\u003cstd_hilite/STD_syntax_highlight\u003e is a syntax highlighter with multiple output formats.\n\nSee the headers of the respective programs for more details, and don't hesitate\nto ask around as quite a bit of this is underdocumented.\n\n=head1 Working the Makefile\n\nTo regenerate perl 5 files from perl 6 STD.pm6, STD_P5.pm6, and Cursor.pm6\nchanges:\n\n make\n\nTo do that, but without running the self test (bootstrap):\n\n make fast\n\nTo remake only one file:\n\n make STD.pmc\n\nTo update the first stage, allowing new STD.pm6 or Cursor.pm6 features to be\nused while building future versions of STD.pm6 or Cursor.pm6:\n\n make reboot\n\nTo remove all generated files:\n\n make clean\n\nTo test the ability to parse the Perl 6 test suite (this is a very effective\nregression test, but B\u003cslow\u003e - 20-75 minutes; also, it runs in a snapshot of\nthe current directory, so you can continue hacking):\n\n make snaptest\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperl6%2Fstd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperl6%2Fstd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperl6%2Fstd/lists"}