systems

package
v0.0.4-beta.13 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package systems implements lightweight regex-based parsers for systems languages: Rust and C#. No tree-sitter dependency — pure Go regex extraction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Path       string
	Type       string // "use", "extern", "using"
	LineNumber int
}

Dependency represents a use/extern/import statement.

type Entity

type Entity struct {
	Name      string
	Type      string
	Kind      string
	Signature string
	StartLine int
	EndLine   int
	Parent    string
}

Entity represents a named code element.

type ParseResult

type ParseResult struct {
	FilePath     string
	Entities     []*Entity
	Dependencies []*Dependency
}

ParseResult is the output of a systems language parse.

func ParseCSharp

func ParseCSharp(filePath string, content string) *ParseResult

ParseCSharp extracts classes, interfaces, structs, enums, records, methods, properties, and using statements.

func ParseRust

func ParseRust(filePath string, content string) *ParseResult

ParseRust extracts structs, enums, traits, impls, fns, mods, and use statements.

Jump to

Keyboard shortcuts

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