Install the npm package
npm i gmail-lang
yarn add gmail-lang
Import the gmail language from your code and use it.
import { Gmail } from 'gmail-lang'
The package also exports:
Gmail
which is the code mirror language extensionparser
which is the Lezer Gmail parser to create a Lezer tree from the source codemakeQuery
, is a function which receives the code mirror state, a tree and returns the respective querysourceToQuery
is a function which receives the source code and returns the corresponding Gmail queryevalQuery
is a function which receives a query, a data source and evaluates the query returning the result of evaluating the query.evalLangQuery
is a function which receives a source and a data source and evaluates the query returning the result of evaluating the query.The data source must respect the next interface:
filterByMatch
allByKeyword
intersection
union
difference
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4