parsers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseGoFile

func ParseGoFile(filePath string) models.IR

ParseGoFile parses a Go file and extracts struct information

Types

type GoParser

type GoParser struct{}

func (GoParser) Parse

func (g GoParser) Parse(filePath string) (models.IR, error)

type Parser

type Parser interface {
	Parse(filePath string) (models.IR, error)
}

func GetParser

func GetParser(filePath string) (Parser, error)

type PythonParser

type PythonParser struct{}

func (PythonParser) Parse

func (p PythonParser) Parse(filePath string) (models.IR, error)

type TypeScriptParser

type TypeScriptParser struct{}

func (TypeScriptParser) Parse

func (t TypeScriptParser) Parse(filePath string) (models.IR, error)

Jump to

Keyboard shortcuts

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