Documentation
¶
Overview ¶
Kotlin parser for parsing Kotlin code into code chunks
Rust parser for parsing Rust code into code chunks ¶
Shell parser for parsing shell scripts into code chunks
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeChunkingService ¶
func InitializeChunkingService() *chunking.ChunkingService
InitializeChunkingService creates and initializes a new chunking service with all supported parsers
func NewParserFactory ¶
func NewParserFactory() map[chunking.Language]chunking.LanguageParser
NewParserFactory creates a new parser factory that registers all supported language parsers
Types ¶
type GoParser ¶
type GoParser struct{}
GoParser is a parser for Go code
func (*GoParser) GetLanguage ¶
GetLanguage returns the language this parser handles
type HCLParser ¶
type HCLParser struct{}
HCLParser is a parser for HCL (Terraform) code
func (*HCLParser) GetLanguage ¶
GetLanguage returns the language this parser handles
type JavaParser ¶
type JavaParser struct{}
JavaParser is a parser for Java code
func (*JavaParser) GetLanguage ¶
func (p *JavaParser) GetLanguage() chunking.Language
GetLanguage returns the language this parser handles
type JavaScriptParser ¶
type JavaScriptParser struct{}
JavaScriptParser is a parser for JavaScript code
func NewJavaScriptParser ¶
func NewJavaScriptParser() *JavaScriptParser
NewJavaScriptParser creates a new JavaScriptParser
func (*JavaScriptParser) GetLanguage ¶
func (p *JavaScriptParser) GetLanguage() chunking.Language
GetLanguage returns the language this parser handles
type KotlinParser ¶
type KotlinParser struct{}
KotlinParser handles parsing Kotlin code
func NewKotlinParser ¶
func NewKotlinParser() *KotlinParser
NewKotlinParser creates a new Kotlin parser instance
func (*KotlinParser) GetLanguage ¶
func (p *KotlinParser) GetLanguage() chunking.Language
GetLanguage returns the language this parser supports
type PythonParser ¶
type PythonParser struct{}
PythonParser is a parser for Python code
func NewPythonParser ¶
func NewPythonParser() *PythonParser
NewPythonParser creates a new PythonParser
func (*PythonParser) GetLanguage ¶
func (p *PythonParser) GetLanguage() chunking.Language
GetLanguage returns the language this parser handles
type RustParser ¶
type RustParser struct{}
RustParser handles parsing Rust code
func NewRustParser ¶
func NewRustParser() *RustParser
NewRustParser creates a new Rust parser instance
func (*RustParser) GetLanguage ¶
func (p *RustParser) GetLanguage() chunking.Language
GetLanguage returns the language this parser supports
type ShellParser ¶
type ShellParser struct{}
ShellParser handles parsing shell scripts
func NewShellParser ¶
func NewShellParser() *ShellParser
NewShellParser creates a new Shell parser instance
func (*ShellParser) GetLanguage ¶
func (p *ShellParser) GetLanguage() chunking.Language
GetLanguage returns the language this parser supports
type TypeScriptParser ¶
type TypeScriptParser struct{}
TypeScriptParser handles parsing TypeScript code
func NewTypeScriptParser ¶
func NewTypeScriptParser() *TypeScriptParser
NewTypeScriptParser creates a new TypeScript parser instance
func (*TypeScriptParser) GetLanguage ¶
func (p *TypeScriptParser) GetLanguage() chunking.Language
GetLanguage returns the language this parser handles
Source Files
¶
- factory.go
- golang.go
- hcl.go
- java.go
- javascript.go
- kotlin.go
- kotlin_classes.go
- kotlin_comments.go
- kotlin_deps.go
- kotlin_functions.go
- kotlin_objects.go
- kotlin_packages.go
- kotlin_properties.go
- python.go
- rust.go
- rust_consts.go
- rust_deps.go
- rust_functions.go
- rust_impls.go
- rust_macros.go
- rust_traits.go
- shell.go
- typescript.go
- utils.go