Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule []instruction
Rule represents a compiled rule.
func Compile ¶
Compile compiles a rule from an expression. The lookup function is used to map strings to concept ids. If lookup returns a number <= 0, the concept could not be found and an error will be returned from Compile.
Click to show internal directories.
Click to hide internal directories.