Re:Bash-LSP: A language server for Bash
by michael1999 on Thursday April 01, 2021 @03:15PM
(#26664832)
Do you really think someone would write a lexer, a parser, and an implementation of the LSP protocol for Bash in Bash?
[ Parent
| on HN ]
Re:Bash-LSP: A language server for Bash
by kazinator on Thursday April 01, 2021 @04:43PM
(#26665777)
But there is a lexer and parser for Bash inside Bash. Bash could either provide the LSP protocol itself, or else open up some primitives for a script to gain access to the info somehow.
There's more languages native to unix-land than Bash, you know. Find me a linux distro that doesn't have GCC or Clang installed by default, or even Python for that matter.
What about C and Python are "native to Bash's environment" though? That's the complaint the person you're responding to is touching on.
Also, lots of Linux distributions don't come with GCC and Clang by default (Ubuntu, Debian, OpenSUSE).
Re:Bash-LSP: A language server for Bash
by akvadrako on Thursday April 01, 2021 @06:29PM
(#26667040)
Bash is written in C so depending on C doesn't add a dependency.
Python is also the 2nd most popular scripting language in the Linux world; it's even part of the Freedesktop base runtime. Though I don't know if it's standard in BSDs.