HomeSoftware Heritage

query_language: Setup tree-sitter and grammar.js

Description

query_language: Setup tree-sitter and grammar.js

This revision defines the grammar for the search query language and
prepares swh.search for a smoother development of the grammar.

The parsers generated from the proposed grammar serve two different purposes:

  • Translation of search queries into elasticsearch DSL in swh.search (or any

other search backend that we may use in the future)

  • Autocompletion of the queries in the swh.web (Archive UI)

tree-sitter has been selected for the task because it has bindings for
python (swh.search) as well as wasm (swh.web).

Details

Provenance
KShivenduAuthored on Jul 13 2021, 12:51 PM
KShivenduPushed on Jul 26 2021, 5:23 PM
KShivenduPushed on Jul 26 2021, 5:14 PM
KShivenduPushed on Jul 26 2021, 4:57 PM
Differential Revision
D5990: query_language: Setup tree-sitter and grammar.js
Parents
rDSEA122d7caf6577: Always flush kafka producers in tests
Branches
Unknown
Tags
Unknown
Build Status
Buildable 22747
Build 35473: test-and-buildJenkins console · Jenkins