{"id":25485007,"url":"https://github.com/lesterlyu/snm-parser","last_synced_at":"2025-07-05T03:07:51.365Z","repository":{"id":86117149,"uuid":"245918936","full_name":"LesterLyu/snm-parser","owner":"LesterLyu","description":null,"archived":false,"fork":false,"pushed_at":"2020-03-13T14:24:08.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T05:52:43.071Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/LesterLyu.png","metadata":{"files":{"readme":"readme.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-03-09T01:35:20.000Z","updated_at":"2020-03-13T14:24:10.000Z","dependencies_parsed_at":"2023-03-06T08:15:24.448Z","dependency_job_id":null,"html_url":"https://github.com/LesterLyu/snm-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LesterLyu/snm-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesterLyu%2Fsnm-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesterLyu%2Fsnm-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesterLyu%2Fsnm-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesterLyu%2Fsnm-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LesterLyu","download_url":"https://codeload.github.com/LesterLyu/snm-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesterLyu%2Fsnm-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263674296,"owners_count":23494549,"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":"2025-02-18T18:34:23.217Z","updated_at":"2025-07-05T03:07:51.360Z","avatar_url":"https://github.com/LesterLyu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## SNM Grammar Specification\n\n### Install [Lark](https://github.com/lark-parser/lark)\n```sh\n$ pip3 install lark-parser  # pip if in Windows environment\n```\n\n### Operator Precedence (High to Low)\n- `+`, `-` Unary plus and minus\n  - `-1`\n  - `--+100` -\u003e `100`\n  - `++++100` -\u003e `100`\n  - `---100` -\u003e `-100`\n- `in` -\u003e list operation\n  - `\"abc\" in [\"abc\", \"def\"]` -\u003e `true`\n  - `1 in [1, 2, 3,]` -\u003e `true`\n  - `[1, 2] in [1, 2, 4, 6]` -\u003e `true`\n  - `[0, 2] in [1, 2, 3]` -\u003e `false`\n  - `!1 in [true, false]` -\u003e `false`\n    - `1 in [true, false]` is evaluated first!\n- `!` Logical not\n  - `!false` -\u003e `true`\n  - `!100` -\u003e `false`\n  - `!0` -\u003e `true`\n- `*`, `/`, `%` Multiplication, division, and remainder\n- `+`, `-` Addition and subtraction\n- `\u003c`, `\u003c=`, `\u003e`, `\u003e=`\tRelational operators \u003c, ≤, \u003e, ≥\n- `==`, `!=` Relational = and ≠ respectively\n- `\u0026\u0026` Logical AND\n- `||` Logical OR\n\n### Data Types\n- String: `\"string\"`\n- Number: `123`, `-123`\n- Boolean: `true`, `false`\n- Array: `[1, 3, \"hello\", [123, 456], true, false]`\n  - An array can contain any data types\n- Field: \n  - e.g. `age`, `AGE`, `age_01`, `i_am_a_field`\n  - Field name should contain only numbers, letters and underline _\n  - **No special characters** are allowed :point_left:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesterlyu%2Fsnm-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flesterlyu%2Fsnm-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesterlyu%2Fsnm-parser/lists"}