4 ms·
Do you really think someone would write a lexer, a parser, and an implementation of the LSP protocol for Bash in Bash?
by michael1999 6y ago
Do you really think someone would write a lexer, a parser, and an implementation of the LSP protocol for Bash in Bash?
- usbline 6y agoThere'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.
- mikewhy 6y agoWhat 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).
- akvadrako 6y agoBash 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.
- oblio 6y ago> Find me a linux distro that doesn't have GCC or Clang installed by default Most distros don't preinstall C compilers.
- kazinator 6y agoBut 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.