parser_go

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MulanPSL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDir

func ParseDir(dir string, pSet *generator.PrototypeSet) error

func ParseFile

func ParseFile(fn string) (*generator.File, error)

解析一个文件的原型

func ParseSet

func ParseSet(rootDir string) (*generator.PrototypeSet, error)

Types

type Parser

type Parser struct {
}

func (*Parser) Name

func (p *Parser) Name() string

func (*Parser) NewConfig

func (p *Parser) NewConfig() generator.ParserConfig

func (*Parser) Parse

type ParserConfig

type ParserConfig struct {
	Dir string `json:"dir,omitempty"`
}

Jump to

Keyboard shortcuts

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