parser

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 4 Imported by: 0

README

parser

import "github.com/tfadeyi/sloth-simple-comments/internal/parser"

Index

type Parser

Parser parses source files containing the sloth definitions

type Parser struct {
    Opts *options.Options
}
func New
func New(opts ...options.Option) (*Parser, error)

New creates a new instance of the parser, defaults to golang parsing strategy if non are passed

func (*Parser) Parse
func (p *Parser) Parse(ctx context.Context) (*sloth.Spec, error)

Generated by gomarkdoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	Opts *options.Options
}

Parser parses source files containing the sloth definitions

func New

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

New creates a new instance of the parser, defaults to golang parsing strategy if non are passed

func (*Parser) Parse

func (p *Parser) Parse(ctx context.Context) (*sloth.Spec, error)

Directories

Path Synopsis
Package options contains the different options available for the Parser struct
Package options contains the different options available for the Parser struct
wasm
Package wasm is an attempt at using wazero to write parser in native languages like Typescript
Package wasm is an attempt at using wazero to write parser in native languages like Typescript

Jump to

Keyboard shortcuts

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