glob/syntax/syntax.go

15 lines
241 B
Go
Raw Permalink Normal View History

2016-05-30 19:35:53 +03:00
package syntax
import (
"github.com/gobwas/glob/syntax/ast"
"github.com/gobwas/glob/syntax/lexer"
)
func Parse(s string) (*ast.Node, error) {
return ast.Parse(lexer.NewLexer(s))
}
func Special(b byte) bool {
return lexer.Special(b)
}