{"id":15680676,"url":"https://github.com/nikku/lezer-feel","last_synced_at":"2026-02-10T00:07:22.110Z","repository":{"id":39797512,"uuid":"254941411","full_name":"nikku/lezer-feel","owner":"nikku","description":"Lezer grammar definition for the DMN 1.3 FEEL language","archived":false,"fork":false,"pushed_at":"2025-01-12T19:36:16.000Z","size":687,"stargazers_count":12,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-27T11:50:30.432Z","etag":null,"topics":["dmn","dmn-feel","feel","lezer-grammar"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/nikku.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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},"funding":{"github":["nikku"]}},"created_at":"2020-04-11T19:36:44.000Z","updated_at":"2025-01-12T19:36:20.000Z","dependencies_parsed_at":"2023-02-14T18:01:38.221Z","dependency_job_id":"4750e42e-718e-4ff9-a9a1-cedb094294b5","html_url":"https://github.com/nikku/lezer-feel","commit_stats":{"total_commits":229,"total_committers":2,"mean_commits":114.5,"dds":0.03493449781659386,"last_synced_commit":"8a95040c585b0d89b8fafaf96ab2eec8513fb7c3"},"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Flezer-feel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Flezer-feel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Flezer-feel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Flezer-feel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikku","download_url":"https://codeload.github.com/nikku/lezer-feel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710404,"owners_count":21149185,"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":["dmn","dmn-feel","feel","lezer-grammar"],"created_at":"2024-10-03T16:43:53.270Z","updated_at":"2026-02-10T00:07:22.104Z","avatar_url":"https://github.com/nikku.png","language":"JavaScript","funding_links":["https://github.com/sponsors/nikku"],"categories":[],"sub_categories":[],"readme":"# lezer-feel\n\n[![CI](https://github.com/nikku/lezer-feel/actions/workflows/CI.yml/badge.svg)](https://github.com/nikku/lezer-feel/actions/workflows/CI.yml)\n\nThis is a [DMN](https://www.omg.org/spec/DMN/) FEEL grammar for the\n[Lezer](https://lezer.codemirror.net/) parser system.\n\n\n## Usage\n\nParse FEEL to a [`Tree`](https://lezer.codemirror.net/docs/ref/#common.Tree):\n\n```javascript\nimport {\n  parser\n} from 'lezer-feel';\n\n// parse \u003cExpression\u003e\nparser.parse('foo \u003e 1');\n```\n\n\n#### Choose Dialect\n\nUse `Expression` or `UnaryTests` as a [top node](https://lezer.codemirror.net/docs/ref/#lr.LRParser.topNode) depending on which FEEL dialect you intend to parse:\n\n```javascript\nimport {\n  parser\n} from 'lezer-feel';\n\nconst unaryParser = parser.configure({\n  top: 'UnaryTests'\n})\n\n// parse \u003cUnaryTests\u003e\nunaryParser.parse('\u003e 100');\n```\n\n\n#### Provide Context\n\nOverride the default [context tracker](https://lezer.codemirror.net/docs/ref/#lr.ParserConfig.contextTracker) to enable context sensitive parsing based on inputs:\n\n```javascript\nimport {\n  parser,\n  trackVariables\n} from 'lezer-feel';\n\nconst contextTracker = trackVariables({\n  'if foo then bar': 1\n});\n\nconst contextualParser = parser.configure({\n  contextTracker\n});\n\n// recognizes \u003cif foo then bar\u003e as a \u003cVariableName\u003e\ncontextualParser.parse('if foo then bar');\n```\n\n\n## Development\n\n```shell\n# build and test\nnpm run all\n\n# test\nnpm test\n\n# test (debug)\nLOG=fparse:dbg,fparse,context,parse npm test\n```\n\nPrefix [individual](./test/expressions.txt) [tests](./test/unary-tests.txt) with a `*` to test them in focus mode:\n\n```markdown\n# *ArithmeticExpression (error)\n\n...\n```\n\n\n## Related\n\n* [feelin](https://github.com/nikku/feelin) - Interpreter for the FEEL language\n* [feel-playground](https://github.com/nikku/feel-playground) - A visual playground to learn the FEEL language\n* [lang-feel](https://github.com/nikku/lang-feel) - Integration into a [CodeMirror](https://codemirror.net/) editor\n\n## License\n\nThe code is licensed under an MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikku%2Flezer-feel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikku%2Flezer-feel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikku%2Flezer-feel/lists"}