Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/libgraviton/rql-command
RQL parser and lexer commands
https://github.com/libgraviton/rql-command
Last synced: about 2 months ago
JSON representation
RQL parser and lexer commands
- Host: GitHub
- URL: https://github.com/libgraviton/rql-command
- Owner: libgraviton
- Created: 2015-04-13T18:07:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-03T09:59:06.000Z (over 8 years ago)
- Last Synced: 2024-08-08T15:29:16.422Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 904 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
RQL parser and lexer commands
=============================This is console commands to visualize your RQL code
using [Symfony console](https://github.com/symfony/Console) and [RQL parser](https://github.com/xiag-ag/rql-parser).Installation
------------```
composer require xiag/rql-command
```Usage
-----```
./vendor/bin/rql
```### Lexer command ###
```
./vendor/bin/rql rql:lexer '(eq(a,false())|(c=string:3)|like(d,a*ab%2Ac?def))¬(e=6.0)&sort(+a,-b)&limit(1,2)'
```![alt tag](https://raw.githubusercontent.com/xiag-ag/rql-command/master/resources/example-lexer.png)
### Parser command ###
```
./vendor/bin/rql rql:parser '(eq(a,false())|(c=string:3)|(d=in=(4,5)¬(e=6.0))|f>2015-04-19T05:05:05Z)&like(g,a*ab%2Ac?def)&sort(+a,-b)&limit(1,2)'
```![alt tag](https://raw.githubusercontent.com/xiag-ag/rql-command/master/resources/example-parser.png)
Resources
---------
* [RQL parser](https://github.com/xiag-ag/rql-parser)
* [RQL Rules](https://github.com/persvr/rql)
* [RQL documentation](https://doc.apsstandard.org/2.1/spec/rql)