Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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))&not(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)&not(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)