Versions in this module Expand all Collapse all v0 v0.0.3 May 31, 2024 Changes in this version + const AND + const IDENT + const OR + const WITH + var ErrInvalidExpression = xerrors.New("invalid expression error") + func Normalize(license string, fn ...NormalizeFunc) (string, error) + func NormalizeForSPDX(s string) string + type CompoundExpr struct + func (c CompoundExpr) String() string + type Expression interface + String func() string + type Lexer struct + func NewLexer(reader io.Reader) *Lexer + func (l *Lexer) Err() error + func (l *Lexer) Error(e string) + func (l *Lexer) Lex(lval *yySymType) int + type NormalizeFunc func(license string) string + type SimpleExpr struct + func (s SimpleExpr) String() string + type Token struct