{"id":25707910,"url":"https://github.com/tgrospic/pegjs-livescript-plugin","last_synced_at":"2026-03-02T17:35:00.337Z","repository":{"id":57321831,"uuid":"41869064","full_name":"tgrospic/pegjs-livescript-plugin","owner":"tgrospic","description":"PEG.js LiveScript plugin","archived":false,"fork":false,"pushed_at":"2017-04-15T17:22:22.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-20T20:14:06.217Z","etag":null,"topics":["language-plugin","livescript","pegjs","syntax-highlighting"],"latest_commit_sha":null,"homepage":null,"language":"LiveScript","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/tgrospic.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}},"created_at":"2015-09-03T15:55:31.000Z","updated_at":"2017-07-10T08:20:45.000Z","dependencies_parsed_at":"2022-08-25T22:41:49.621Z","dependency_job_id":null,"html_url":"https://github.com/tgrospic/pegjs-livescript-plugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tgrospic/pegjs-livescript-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgrospic%2Fpegjs-livescript-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgrospic%2Fpegjs-livescript-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgrospic%2Fpegjs-livescript-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgrospic%2Fpegjs-livescript-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tgrospic","download_url":"https://codeload.github.com/tgrospic/pegjs-livescript-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tgrospic%2Fpegjs-livescript-plugin/sbom","scorecard":{"id":876196,"data":{"date":"2025-08-11","repo":{"name":"github.com/tgrospic/pegjs-livescript-plugin","commit":"346764134cc1b66514b6d0041c8a2df18d7c7b5b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/10 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-24T06:05:27.349Z","repository_id":57321831,"created_at":"2025-08-24T06:05:27.349Z","updated_at":"2025-08-24T06:05:27.349Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30011976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T17:00:27.440Z","status":"ssl_error","status_checked_at":"2026-03-02T17:00:03.402Z","response_time":60,"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":["language-plugin","livescript","pegjs","syntax-highlighting"],"created_at":"2025-02-25T08:55:01.838Z","updated_at":"2026-03-02T17:35:00.300Z","avatar_url":"https://github.com/tgrospic.png","language":"LiveScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PEG.js LiveScript plugin\n\n[![build status][travis-image]][travis-url]\n[![npm version][version-image]][version-url]\n\n[PEG.js][peg-js] is a great tool for generating parsers in JavaScript with very concise grammar.  \nFor more in-depth entertainment on packrat parsers and PEGs;\nhere is the wild stuff [Packrat Parsing and Parsing Expression Grammars][peg-bford].\n\n[LiveScript][livescript] is a glorious language which compiles to JavaScript.\nThe _everything-is-expression_ style and its sugary syntax makes me a smile every time. :smile:\n\nThis plugin, following the example of the existing CoffeeScript plugins\n[[Dignifiedquire/pegjs-coffee-plugin][cp1], [ttilley/pegcoffee][cp2]],\nallows writing PEG.js grammar with\n[LiveScript][livescript] code in _initializer_, _actions_ and _predicates_.\n\n_There is a little difference in comparison with Coffee plugins.\nContext `this` or `@` remains unchanged._\n\n## Installation\n\n```sh\n$ npm install pegjs-livescript-plugin\n```\n\n## Usage\n\n#### Node.js\n\n```ls\nrequire! { PEG, 'pegjs-livescript-plugin' }\n\ngrammar = \"Start = cs:.* { cs.join '' }\"\n\n# Build parser with LiveScript plugin\nparser = PEG.buildParser grammar, plugins: [pegjs-livescript-plugin]\n\nparser.parse 'PEG is fun!'\n```\n\n#### CLI\n\n```sh\n$ pegjs --plugin pegjs-livescript-plugin my-grammar.pegls\n```\n\n#### PEG.js LiveScript\n\n```ls\n# .pegls - PEG.js LiveScript grammar\n{\n  my-var = 42\n\n  join-chars = (chars) -\u003e\n    chars.join ''\n}\n\nStart\n  = cs:.* {\n    # my-var := 4711 # SyntaxError: assignment to undeclared \"myVar\"\n    my-var = 4711 # initializer variable `my-var == 42` is shadowed\n    join-chars cs\n  }\n```\n\ncompiles to JavaScript\n\n```js\n{\n  var myVar, joinChars;\n  myVar = 42;\n  joinChars = function(chars){\n    return myVar + chars.join(''); // myVar === 42\n  };\n}\n\nStart\n  = ch:.* {\n    var myVar;\n    return myVar = 4711, joinChars(cs);\n  }\n```\n\n__Note__: variables defined in one scope (between `{` `}`) can not be modified in a different scope\nnot even with `:=`. Each scope is compiled separately which causes re-declaration of variables.\nIt seems to me that this is actually a _smart_ restriction (consequence) but I'm open to suggestions.\n\n## Tests\n\n```sh\n$ npm test\n```\n\n## Todo\n\n- browser build/test\n- better compile/runtime error report (sourcemap?!)\n- accept compiler options (eg. `const: true`)\n\n## License\n\n[The MIT License (MIT)][license]\n\n[peg-js]: https://github.com/pegjs/pegjs\n[peg-bford]: http://bford.info/packrat\n[livescript]: https://github.com/gkz/LiveScript\n[cp1]: https://github.com/Dignifiedquire/pegjs-coffee-plugin\n[cp2]: https://github.com/ttilley/pegcoffee\n\n[travis-image]: https://api.travis-ci.org/tgrospic/pegjs-livescript-plugin.svg\n[travis-url]: https://travis-ci.org/tgrospic/pegjs-livescript-plugin\n[version-image]: https://img.shields.io/npm/v/pegjs-livescript-plugin.svg\n[version-url]: https://www.npmjs.com/package/pegjs-livescript-plugin\n[license]: https://github.com/tgrospic/pegjs-livescript-plugin/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftgrospic%2Fpegjs-livescript-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftgrospic%2Fpegjs-livescript-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftgrospic%2Fpegjs-livescript-plugin/lists"}