Language aliases support
bzz opened this issue · comments
Enry and Bblfsh use different language names and one driver is responsible for parsing multiple dialects.
Right now bblfsh can accept both bblfsh or enry language names (for most common cases), but returns always only bblfsh ones.
Initial RFC and implementation details are in mailing list
This issue is going to be used as ☂️ and all details from MailingList will be moved in here before actual work begins (current expectation is 2Q2019
).
Driver → Language Aliases
- bash
- shell
- TODO: add more *sh that enry differenciate
- cpp
- C
- C++
- csharp
- C#
- Go
- Java
- JavaScript
- JSX
- Javascript
- PHP
- Python
- Ruby
- TypeScript
This list covers 2 main cases:
enry
<=>bblfshd
language name mismatch (e.gC#
vscharp
)- Dialects supported by a single driver (e.g
javascript-driver
for JSX and js,cpp-driver
for C\C++,bash-driver
for *sh)
Relevant issues
- initial discussion bblfsh/bash-driver#39
- usage pattern 2 in client https://github.com/src-d/engine/issues/297
- usage pattern 2 in another client src-d/gitbase#728
List of affected projects:
- jgit-spark-connector
- src-ml
- apollo
- gemini
- src-ml
- gitbase
- gitbase-web
- engine
- gitbase-spark-connector
- gitbase-spark-connector-enterprise
- gitbase-web
- engine (
parse
command)