{"id":39090285,"url":"https://github.com/jaqx0r/filterexpression","last_synced_at":"2026-01-17T18:47:30.889Z","repository":{"id":322712056,"uuid":"1090606964","full_name":"jaqx0r/filterexpression","owner":"jaqx0r","description":"A parser for the AIP-160 filter expression language, implemented  in Go","archived":false,"fork":false,"pushed_at":"2025-12-03T19:20:58.000Z","size":47,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-07T00:52:02.922Z","etag":null,"topics":["aip","api","expression","filter","go","google-aip","parser","rest"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaqx0r.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-05T22:28:32.000Z","updated_at":"2025-12-03T19:19:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jaqx0r/filterexpression","commit_stats":null,"previous_names":["jaqx0r/filterexpression"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jaqx0r/filterexpression","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaqx0r%2Ffilterexpression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaqx0r%2Ffilterexpression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaqx0r%2Ffilterexpression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaqx0r%2Ffilterexpression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaqx0r","download_url":"https://codeload.github.com/jaqx0r/filterexpression/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaqx0r%2Ffilterexpression/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28516250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T18:28:00.501Z","status":"ssl_error","status_checked_at":"2026-01-17T18:28:00.150Z","response_time":85,"last_error":"SSL_read: 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":["aip","api","expression","filter","go","google-aip","parser","rest"],"created_at":"2026-01-17T18:47:30.216Z","updated_at":"2026-01-17T18:47:30.867Z","avatar_url":"https://github.com/jaqx0r.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# filterexpression\n\nA parser for the [AIP-160 filter expression language](https://google.aip.dev/160) implemented in Go.\n\nThe EBNF specification is https://google.aip.dev/assets/misc/ebnf-filtering.txt\n\nThis library has minor modifications to the parse tree to avoid ambiguity and simplify Visitor implementations.\n\n```go\nimport \"github.com/jaqx0r/filterexpression\"\n\n\n   ...\n   ast, err := filterexpression.Parse(req.filter)\n   ...\n```\n\nVisit the AST by implementing the `FilterVisitor` interface.\n\nYou can embed the existing `Visitor` as a base, so your implementation only needs to override the methods it cares about.\n\n```go\ntype Visitor struct {\n    filtervisitor.Visitor\n\n    query query.Builder\n}\n\nfunc (v *Visitor) VisitFunction(ast *filterexpression.Function) error {\n  query.Function(ast.Name[0])\n  return nil\n}\n\n...\n   visitor = \u0026Visitor{}\n   if err := filterexpression.Visit(ast, visitor); err != nil {\n     log.Errorf(\"Visit() failed: %v\", err)\n   }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaqx0r%2Ffilterexpression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaqx0r%2Ffilterexpression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaqx0r%2Ffilterexpression/lists"}