You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/langchain_community/document_loaders/parsers/language
Max Mulatz 058a64c563
Community[minor]: Add language parser for Elixir (#22742)
Hi 👋 

First off, thanks a ton for your work on this 💚 Really appreciate what
you're providing here for the community.

## Description

This PR adds a basic language parser for the
[Elixir](https://elixir-lang.org/) programming language. The parser code
is based upon the approach outlined in
https://github.com/langchain-ai/langchain/pull/13318: it's using
`tree-sitter` under the hood and aligns with all the other `tree-sitter`
based parses added that PR.

The `CHUNK_QUERY` I'm using here is probably not the most sophisticated
one, but it worked for my application. It's a starting point to provide
"core" parsing support for Elixir in LangChain. It enables people to use
the language parser out in real world applications which may then lead
to further tweaking of the queries. I consider this PR just the ground
work.

- **Dependencies:** requires `tree-sitter` and `tree-sitter-languages`
from the extended dependencies
- **Twitter handle:**`@bitcrowd`

## Checklist

- [x] **PR title**: "package: description"
- [x] **Add tests and docs**
- [x] **Lint and test**: Run `make format`, `make lint` and `make test`
from the root of the package(s) you've modified.

<!-- If no one reviews your PR within a few days, please @-mention one
of baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17. -->
3 months ago
..
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
c.py Framework for supporting more languages in LanguageParser (#13318) 7 months ago
cobol.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
code_segmenter.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
cpp.py Framework for supporting more languages in LanguageParser (#13318) 7 months ago
csharp.py Framework for supporting more languages in LanguageParser (#13318) 7 months ago
elixir.py Community[minor]: Add language parser for Elixir (#22742) 3 months ago
go.py Framework for supporting more languages in LanguageParser (#13318) 7 months ago
java.py Framework for supporting more languages in LanguageParser (#13318) 7 months ago
javascript.py community[patch]: doc loaders mypy fixes (#17368) 7 months ago
kotlin.py Framework for supporting more languages in LanguageParser (#13318) 7 months ago
language_parser.py Community[minor]: Add language parser for Elixir (#22742) 3 months ago
lua.py Framework for supporting more languages in LanguageParser (#13318) 7 months ago
perl.py Framework for supporting more languages in LanguageParser (#13318) 7 months ago
php.py community: Add PHP language parser to document_loaders (#19850) 6 months ago
python.py community[patch]: doc loaders mypy fixes (#17368) 7 months ago
ruby.py Framework for supporting more languages in LanguageParser (#13318) 7 months ago
rust.py Framework for supporting more languages in LanguageParser (#13318) 7 months ago
scala.py Framework for supporting more languages in LanguageParser (#13318) 7 months ago
tree_sitter_segmenter.py Framework for supporting more languages in LanguageParser (#13318) 7 months ago
typescript.py Framework for supporting more languages in LanguageParser (#13318) 7 months ago