langchain_community.document_loaders.parsers.language.lua
.LuaSegmenter¶
- class langchain_community.document_loaders.parsers.language.lua.LuaSegmenter(code: str)[source]¶
Code segmenter for Lua.
Methods
__init__
(code)is_valid
()make_line_comment
(text)- Parameters
code (str) –
- __init__(code: str)¶
- Parameters
code (str) –
- extract_functions_classes() List[str] ¶
- Return type
List[str]
- get_parser() Parser ¶
- Return type
Parser
- is_valid() bool ¶
- Return type
bool
- simplify_code() str ¶
- Return type
str