compiler

package
v0.0.0-...-95da4ec Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InString

func InString(hay []string, needle string) bool

func VerifyRECmd

func VerifyRECmd(
	reb_directory string, rules []string,
	mapping_file string) error

Types

type Compiler

type Compiler struct {
	PreambleVerses []string
	// contains filtered or unexported fields
}

func NewCompiler

func NewCompiler() *Compiler

func (*Compiler) Compile

func (self *Compiler) Compile() (string, error)

func (*Compiler) CompileMeta

func (self *Compiler) CompileMeta() (string, error)

A Meta artifact is used to verify the VQL of embedded rules.

func (*Compiler) GetRules

func (self *Compiler) GetRules() []byte

func (*Compiler) LoadRules

func (self *Compiler) LoadRules(filename string) error

func (*Compiler) WriteIndex

func (self *Compiler) WriteIndex(path string) error

type Mapping

type Mapping struct {
	RECmdRules map[string]string `json:"RECmdRules"`
}

Jump to

Keyboard shortcuts

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