{"action":"created","issue":{"url":"https://api.github.com/repos/libgraviton/php-rql-parser/issues/13","labels_url":"https://api.github.com/repos/libgraviton/php-rql-parser/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/libgraviton/php-rql-parser/issues/13/comments","events_url":"https://api.github.com/repos/libgraviton/php-rql-parser/issues/13/events","html_url":"https://github.com/libgraviton/php-rql-parser/issues/13","id":62514564,"number":13,"title":"implement sugar syntax handling","user":{"login":"hairmare","id":116588,"avatar_url":"https://avatars.githubusercontent.com/u/116588?v=3","gravatar_id":"","url":"https://api.github.com/users/hairmare","html_url":"https://github.com/hairmare","followers_url":"https://api.github.com/users/hairmare/followers","following_url":"https://api.github.com/users/hairmare/following{/other_user}","gists_url":"https://api.github.com/users/hairmare/gists{/gist_id}","starred_url":"https://api.github.com/users/hairmare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hairmare/subscriptions","organizations_url":"https://api.github.com/users/hairmare/orgs","repos_url":"https://api.github.com/users/hairmare/repos","events_url":"https://api.github.com/users/hairmare/events{/privacy}","received_events_url":"https://api.github.com/users/hairmare/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-17T20:47:11Z","updated_at":"2015-06-30T16:47:34Z","closed_at":"2015-06-30T16:47:34Z","body":"We need the parser to implement at least some of the sugar syntax variants. In some areas this will need quite some refactoring of the existing parsers but other areas should be easy.\r\n\r\n* [ ] ``&`` instead of ``and()`` (maybe ``,`` should do this as per spec as well)\r\n* [ ] ``|`` instead of ``or()``\r\n* [ ] ``name=val`` instead of ``eq(name,val)``\r\n* [ ] ``count=lt=10`` instead of ``lt(count,10)``\r\n* [ ] ``name=val&count=1`` instead of ``eq(name,val),eq(count,1)``\r\n* [ ] ``()`` based arrays (ie. ``foo=in=(3,bar,true,2000-01-01T00:00:00Z)``\r\n* [ ] typecasting (ie ``foo=string:3``)\r\n* [ ] array nesting: ``(foo,bar)=3`` instead of ``eq(foo.bar,3)``\r\n* [ ] array nesting: ``foo/bar=3`` instead of ``eq(foo.bar,3)``\r\n\r\nThis listing is neither complete neither do I expect us to implement all of it. We'll close this as soon as we reach some kind of consensus that what's implemented is easy enough."},"comment":{"url":"https://api.github.com/repos/libgraviton/php-rql-parser/issues/comments/117251789","html_url":"https://github.com/libgraviton/php-rql-parser/issues/13#issuecomment-117251789","issue_url":"https://api.github.com/repos/libgraviton/php-rql-parser/issues/13","id":117251789,"user":{"login":"hairmare","id":116588,"avatar_url":"https://avatars.githubusercontent.com/u/116588?v=3","gravatar_id":"","url":"https://api.github.com/users/hairmare","html_url":"https://github.com/hairmare","followers_url":"https://api.github.com/users/hairmare/followers","following_url":"https://api.github.com/users/hairmare/following{/other_user}","gists_url":"https://api.github.com/users/hairmare/gists{/gist_id}","starred_url":"https://api.github.com/users/hairmare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hairmare/subscriptions","organizations_url":"https://api.github.com/users/hairmare/orgs","repos_url":"https://api.github.com/users/hairmare/repos","events_url":"https://api.github.com/users/hairmare/events{/privacy}","received_events_url":"https://api.github.com/users/hairmare/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T16:47:34Z","updated_at":"2015-06-30T16:47:34Z","body":"Done by switching to https://github.com/xiag-ag/rql-parser."}}