package
0.1.0-alpha.6
Repository: https://github.com/slosive/sloscribe.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

parser

import "github.com/slosive/sloscribe/internal/parser"

Index

type Parser

Parser parses source files containing the sloth definitions

type Parser struct {
    // Opts contains the different options available to the parser.
    // These are applied by the parser constructor during initialization
    Opts *options.Options
}

func New

func New(opts ...options.Option) (*Parser, error)

New creates a new instance of the parser. See options.Option for more info on the available configuration.

func (*Parser) Parse

func (p *Parser) Parse(ctx context.Context) (map[string]any, error)

Parse parses the data source for the target annotations using the given parser configurations and returns a parsed specification.

Generated by gomarkdoc