https://github.com/chriniko13/adt-example-for-query-parsing
https://github.com/chriniko13/adt-example-for-query-parsing
adt log4j scala scalatest spray
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chriniko13/adt-example-for-query-parsing
- Owner: chriniko13
- Created: 2019-10-16T05:23:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T05:30:33.000Z (almost 6 years ago)
- Last Synced: 2025-06-29T05:37:34.870Z (3 months ago)
- Topics: adt, log4j, scala, scalatest, spray
- Language: Scala
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### ADT Example for Query Parsing
##### Description
Just a sample Algebraic Data Type in order to parse a query in a format that front end application
sends to back end.```text
TreeFormatRule =
TreeFormatNestedRule(id * frequency * combinator * [TreeFormatRule] * not)
+
TreeFormatFlatRule(id * field * operator * value)
TreeFormatFlatRuleValue =
TreeFormatFlatRuleSingleValue(value)
+
TreeFormatFlatRuleMultiValue([value])```
The query tool used in front end is the following: https://github.com/sapientglobalmarkets/react-querybuilder
#### Unit Tests
In order to run them, execute: `sbt test`