Documentation ¶
Index ¶
Constants ¶
View Source
const ( RULE = iota PREFIX INFIX INTEGER STRING REGEX BOOL ASSIGNMENT IDENTITY VARIABLE KEYWORD BYTES IMPORT SET FOR )
Variables ¶
This section is empty.
Functions ¶
func IsModuleCall ¶
IsModuleCall returns true if the expression node is a module call, e.g. pe.entry_point
func IsPrimitive ¶
IsPrimitive returns true if the node is a primitive value like an Integer, Float, String, Variable, or Bool
Types ¶
type Assignment ¶
func (*Assignment) BytePattern ¶
func (a *Assignment) BytePattern() (*BytePattern, error)
BytePattern returns a byte slice which represents the pattern to search for, an offset for use if the pattern is partial and located somewhere in the full pattern, a bool to say if this is case insensitive or not, and an error.
func (Assignment) String ¶
func (a Assignment) String() string
func (*Assignment) Type ¶
func (a *Assignment) Type() int
type BytePattern ¶
type Bytes ¶
func (*Bytes) BytePattern ¶
type Regex ¶
func (*Regex) BytePattern ¶
type Rule ¶
Click to show internal directories.
Click to hide internal directories.