Skip to content

chriniko13/adt-example-for-query-parsing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

   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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages