parsers

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCParser

func NewCParser() *cParser

NewCParser creates a new C parser.

func NewJavaParser

func NewJavaParser() *javaParser

NewJavaParser creates a new Java parser.

func NewJavaScriptParser

func NewJavaScriptParser() *javaScriptParser

NewJavaScriptParser creates a new JavaScript parser.

func NewPhpParser

func NewPhpParser() *phpParser

NewPhpParser creates a new PHP parser.

func NewPythonParser

func NewPythonParser() *pythonParser

NewPythonParser creates a new Python parser.

func NewRubyParser

func NewRubyParser() *rubyParser

NewRubyParser creates a new Ruby parser.

func NewRustParser

func NewRustParser() *rustParser

NewRustParser creates a new Rust parser.

func NewTypeScriptParser

func NewTypeScriptParser() *typeScriptParser

NewTypeScriptParser creates a new TypeScript parser.

Types

type CodeExtraction

type CodeExtraction struct {
	// Symbols contains high-level overview (package, imports count, type/function names)
	Symbols *extraction.SymbolsData

	// Definitions contains full type definitions and function signatures
	Definitions *extraction.DefinitionsData

	// Data contains constants, global variables, and configuration
	Data *extraction.DataData

	// Metadata about the extraction
	Language  string
	FilePath  string
	StartLine int
	EndLine   int
}

CodeExtraction represents the three-tier extraction from a source code file.

type CppParser

type CppParser = cParser

CppParser is an alias for CParser since C++ uses the same grammar.

func NewCppParser

func NewCppParser() *CppParser

NewCppParser creates a new C++ parser.

Jump to

Keyboard shortcuts

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