make

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanRules

func ScanRules(data []byte, atEOF bool) (advance int, token []byte, err error)

Types

type Makefile

type Makefile struct {
	Rules []Rule
}

func Parse

func Parse(r io.Reader) (*Makefile, error)

type Rule

type Rule struct {
	Target  []string
	PreReqs []string
	Recipe  []string
}

type Scanner

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

func NewScanner

func NewScanner(r io.Reader) *Scanner

func (*Scanner) Err

func (s *Scanner) Err() error

func (*Scanner) Scan

func (s *Scanner) Scan() bool

func (*Scanner) Split

func (s *Scanner) Split(split bufio.SplitFunc)

func (*Scanner) Token

func (s *Scanner) Token() interface{}

func (*Scanner) Type

func (s *Scanner) Type() Token

type Token

type Token string
const (
	CommentToken     Token = "comment"
	RuleToken        Token = "rule"
	UnsupportedToken Token = "unsupported"
	WhitespaceToken  Token = "whitespace"
)

Jump to

Keyboard shortcuts

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