{"id":18007662,"url":"https://github.com/jagrosh/jagtag","last_synced_at":"2025-03-26T12:31:44.470Z","repository":{"id":89754839,"uuid":"72977654","full_name":"jagrosh/JagTag","owner":"jagrosh","description":"📝 JagTag is a simple - yet powerful and customizable - interpretted text parsing language!","archived":false,"fork":false,"pushed_at":"2020-02-28T15:10:04.000Z","size":43,"stargazers_count":44,"open_issues_count":5,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-21T19:01:36.749Z","etag":null,"topics":["java","parser","parsing","text-parser","text-parsing"],"latest_commit_sha":null,"homepage":"","language":"Java","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/jagrosh.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}},"created_at":"2016-11-06T09:07:17.000Z","updated_at":"2025-01-02T14:31:27.000Z","dependencies_parsed_at":"2023-04-29T14:16:40.222Z","dependency_job_id":null,"html_url":"https://github.com/jagrosh/JagTag","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagrosh%2FJagTag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagrosh%2FJagTag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagrosh%2FJagTag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jagrosh%2FJagTag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jagrosh","download_url":"https://codeload.github.com/jagrosh/JagTag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245654173,"owners_count":20650816,"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":["java","parser","parsing","text-parser","text-parsing"],"created_at":"2024-10-30T01:14:06.737Z","updated_at":"2025-03-26T12:31:44.465Z","avatar_url":"https://github.com/jagrosh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## JagTag\nJagTag is a simple - yet powerful and customizable - interpretted text parsing language!\nSome methods are included in the built-in libraries, and additional methods can be defined that utilize the parser environment veriables, as well as the method's input.\n\n## Simple Example\n```java\nimport com.jagrosh.jagtag.*;\npublic class Example\n{\n  public static void main(String[] args)\n  {\n    Parser parser = JagTag.newDefaultBuilder()\n                .addMethod( new Method(\"exclaim\", (env,in) -\u003e in[0]+\"!!!\") )\n                .build();\n    String result = parser.parse(\"{exclaim:{if:this|=|that|then:Foo Bar|else:Hello World}}\");\n    System.out.println(result);\n  }\n}\n```\nResult: `Hello World!!!`\n\n## Maven\nTo use Maven with JagTag, simply add the following sections to your pom.xml\n```xml\n  \u003crepository\u003e\n    \u003cid\u003ecentral\u003c/id\u003e\n    \u003cname\u003ebintray\u003c/name\u003e\n    \u003curl\u003ehttp://jcenter.bintray.com\u003c/url\u003e\n  \u003c/repository\u003e\n```\n```xml\n  \u003cdependency\u003e\n    \u003cgroupId\u003ecom.jagrosh\u003c/groupId\u003e\n    \u003cartifactId\u003eJagTag\u003c/artifactId\u003e\n    \u003cversion\u003e0.5\u003c/version\u003e\n  \u003c/dependency\u003e\n```\n\n## Current Projects\nHere are some other projects that utilize JagTag:\n* [**Spectra (Discord Bot)**](https://github.com/jagrosh/Spectra) - Spectra uses JagTag in its customizable \"tags\" (user-created commands), and in welcome and leave messages for servers. (https://github.com/jagrosh/Spectra/blob/master/src/spectra/jagtag/libraries/Discord.java)\n\n## Other Libraries\nBelow are JagTag-related libraries available for other languages or purposes:\n* [**TheSharks/JagTag-JS**](https://github.com/TheSharks/JagTag-JS) - A JavaScript port of the JagTag text parsing language\n* [**TheMonitorLizard/JagTagXML**](https://github.com/TheMonitorLizard/JagTagXML) - a JagTag to XML transpiler written in Java\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagrosh%2Fjagtag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjagrosh%2Fjagtag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagrosh%2Fjagtag/lists"}