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)

extract_functions_classes()

get_chunk_query()

get_language()

get_parser()

is_valid()

make_line_comment(text)

simplify_code()

Parameters

code (str) –

__init__(code: str)¶
Parameters

code (str) –

extract_functions_classes() List[str]¶
Return type

List[str]

get_chunk_query() str[source]¶
Return type

str

get_language() Language[source]¶
Return type

Language

get_parser() Parser¶
Return type

Parser

is_valid() bool¶
Return type

bool

make_line_comment(text: str) str[source]¶
Parameters

text (str) –

Return type

str

simplify_code() str¶
Return type

str