parser

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package parser implements a parser for GoAbU ECA rules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.4.0

func New(types map[string]string, workingMemory *ast.WorkingMemory, args ...any) ecarule.Parser

New takes as arguments the types of the local resources specified as github.com/abu-lang/goabu/memory.Resources.Types and an *ast.WorkingMemory and creates an ecarule.Parser. The parsed expressions will be added to the *ast.WorkingMemory.

If a single sync.Locker is passed as argument then the parser will acquire the lock before performing actions on the *ast.WorkingMemory. Only a single sync.Locker can be passed as argument.

func ValidateIdentifiers added in v0.4.0

func ValidateIdentifiers(ids ...string) []bool

ValidateIdentifiers returns a boolean value for each argument. if the value is true then the argument can be used as an identifier in GoAbU rules.

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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