syntax.go 241 B

1234567891011121314
  1. package syntax
  2. import (
  3. "github.com/gobwas/glob/syntax/ast"
  4. "github.com/gobwas/glob/syntax/lexer"
  5. )
  6. func Parse(s string) (*ast.Node, error) {
  7. return ast.Parse(lexer.NewLexer(s))
  8. }
  9. func Special(b byte) bool {
  10. return lexer.Special(b)
  11. }