{"id":20832887,"url":"https://github.com/udhos/gobule","last_synced_at":"2025-12-25T10:16:24.892Z","repository":{"id":43089100,"uuid":"366926659","full_name":"udhos/gobule","owner":"udhos","description":"Golang Go parser for the Bule Language","archived":false,"fork":false,"pushed_at":"2024-03-01T13:16:33.000Z","size":79,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-18T00:13:30.017Z","etag":null,"topics":["bule-language","compiler","go","interpreter","parser"],"latest_commit_sha":null,"homepage":"","language":"Go","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/udhos.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}},"created_at":"2021-05-13T03:48:07.000Z","updated_at":"2023-06-15T02:17:27.000Z","dependencies_parsed_at":"2024-03-01T14:43:38.516Z","dependency_job_id":null,"html_url":"https://github.com/udhos/gobule","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fgobule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fgobule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fgobule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fgobule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/udhos","download_url":"https://codeload.github.com/udhos/gobule/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234565074,"owners_count":18853247,"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":["bule-language","compiler","go","interpreter","parser"],"created_at":"2024-11-18T00:13:35.535Z","updated_at":"2025-12-25T10:16:19.874Z","avatar_url":"https://github.com/udhos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/udhos/gobule/blob/main/LICENSE)\n[![Go Report Card](https://goreportcard.com/badge/github.com/udhos/gobule)](https://goreportcard.com/report/github.com/udhos/gobule)\n[![Go Reference](https://pkg.go.dev/badge/github.com/udhos/gobule.svg)](https://pkg.go.dev/github.com/udhos/gobule)\n[![Actions](https://github.com/udhos/gobule/actions/workflows/cover.yml/badge.svg)](https://github.com/udhos/gobule/actions/workflows/cover.yml)\n[![codecov](https://codecov.io/gh/udhos/gobule/branch/main/graph/badge.svg?token=I20LOO4AFI)](https://codecov.io/gh/udhos/gobule)\n\n# gobule\n\nGolang Go parser for the [Bule Language](https://github.com/johnowl/owl-rules).\n\n## Usage\n\n```\npackage main\n\nimport (\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/udhos/gobule/parser\"\n)\n\nfunc main() {\n\tvars := map[string]interface{}{\n\t\t\"platform\": \"android\",\n\t}\n\n\tenvDebug := os.Getenv(\"DEBUG\")\n\tdebug := envDebug != \"\"\n\n\tlog.Printf(\"DEBUG=[%s] debug=%v\", envDebug, debug)\n\n\tresult := parser.RunString(\"platform = 'android'\", vars, debug)\n\n\tif result.IsError() {\n\t\tlog.Printf(\"ERROR status=%d errors=%d last_error: [%s]\\n\", result.Status, result.Errors, result.LastError)\n\t\treturn\n\t}\n\n\tlog.Printf(\"result: %v\", result.Eval)\n}\n```\n\n## Build\n\nUse this recipe if you need to build the parser for development.\n\n```\ngit clone https://github.com/udhos/gobule\ncd gobule\ngo generate ./parser ;# generate parser\ngo test ./parser     ;# run tests\ngo install ./parser  ;# build\n```\n\n## Bule Language\n\nhttps://github.com/johnowl/owl-rules\n\n## Tokens\n\nhttps://github.com/johnowl/owl-rules/blob/master/src/main/kotlin/com/johnowl/rules/RulesEvaluator.kt\n\n## Syntax Analyser Generators\n\n### ModernC goyacc\n\n    go get modernc.org/goyacc\n\nhttps://gitlab.com/cznic/goyacc\n\n### Golang goyacc\n\n    go get golang.org/x/tools/cmd/goyacc\n\nhttps://blog.golang.org/generate\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudhos%2Fgobule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fudhos%2Fgobule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudhos%2Fgobule/lists"}