parser

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NinjaParser

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

NinjaParser handles parsing of Ninja build files

func NewNinjaParser

func NewNinjaParser(ninjaStore *store.NinjaStore) *NinjaParser

NewNinjaParser creates a new parser instance

func (*NinjaParser) ParseAndLoad

func (p *NinjaParser) ParseAndLoad(content string) error

ParseAndLoad parses ninja file content and loads it into the store

type ParsedBuild

type ParsedBuild struct {
	Rule         string
	Outputs      []string
	Inputs       []string
	ImplicitDeps []string
	OrderDeps    []string
	Variables    map[string]string
	Pool         string
}

ParsedBuild represents a parsed build statement before it's stored

Jump to

Keyboard shortcuts

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