parser

package
v0.0.4 Latest Latest
Warning

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

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

README

parser

import "github.com/tfadeyi/slotalk/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) (any, error)

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

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 contains the different options available to the parser.
	// These are applied by the parser constructor during initialization
	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. See options.Option for more info on the available configuration.

func (*Parser) Parse

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

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

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
sloth/grammar
Package grammar contains the grammar rules and lexer related to sloth
Package grammar contains the grammar rules and lexer related to sloth

Jump to

Keyboard shortcuts

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