basic

package
v0.0.0-...-e558f2e Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer interface {
	AnalyzeCommand(tokens []string) (*computation.Command, error)
}

type Computer

type Computer struct {
	// contains filtered or unexported fields
}

func NewComputer

func NewComputer(parser Parser, analyzer Analyzer, logger *slog.Logger) *Computer

func (*Computer) ParseRequest

func (c *Computer) ParseRequest(request string) (*computation.Command, error)

type Parser

type Parser interface {
	ParseCommand(command string) ([]string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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