Skip to content

Repository files navigation

AMS-Pro Logo

Filter-Parser

Getting Started

  1. Install the package
go get -u github.com/ams-pro/filter-parser
  1. Use the package
package main
import (
"fmt"
filterparser "github.com/ams-pro/filter-parser"
)
funcmain() {
filterExpr:="and(gt(id,40),lt(id,60))"tree:=filterparser.ParseFilter(filterExpr)
fmt.Println(tree)
}
// Output: // Node {// Token: "and"// Left: Node {// Token: "gt"// Left: Node {// Token: "id"// }// Right: Node {// Token: "40"// }// }// Right: Node {// Token: "lt"// Left: Node {// Token: "id"// }// Right: Node {// Token: "60"// }// }// }

About

A parser for the ams filter language written in go

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages