parsers

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPluginNotFound = errors.New("language plugin not found")

ErrPluginNotFound is returned when a plugin is not found

Functions

This section is empty.

Types

type ParserRegistry

type ParserRegistry interface {
	RegisterParser(plugin schema.ParserPlugin) error
	GetParser(language string) (schema.ParserPlugin, error)
	GetParserForFile(path string, info fs.FileInfo) (schema.ParserPlugin, error)
	GetParserForExtension(ext string) (schema.ParserPlugin, error)
	GetAllParsers() []schema.ParserPlugin
}

ParserRegistry tracks registered language plugins

func NewRegistry

func NewRegistry(logger *slog.Logger) ParserRegistry

NewRegistry creates a new language plugin registry

func RegisterLanguagePlugins

func RegisterLanguagePlugins(logger *slog.Logger) (ParserRegistry, error)

RegisterLanguagePlugins initializes and populates a language registry

Directories

Path Synopsis
core.go - Main plugin file with goldmark integration
core.go - Main plugin file with goldmark integration
extractor - Fixed version
extractor - Fixed version

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL