Commit Graph

31 Commits

Author SHA1 Message Date
Bilal Catic
472bf3f6f3 add query generator tests for keyword detection 2020-02-10 14:12:21 +01:00
Bilal Catic
e05e9e86f9 add parser test for word bounded with dash and underscores 2020-02-10 13:44:55 +01:00
Bilal Catic
04a873b1a6 add lexer test for word bounded with dash and underscores 2020-02-10 13:40:56 +01:00
Bilal Catic
453131a25b add parser tests to check if keywords are handled correctly 2020-02-10 07:05:56 +01:00
Bilal Catic
b532b830ca add lexer tests to check for correct keyword extraction 2020-02-09 22:30:17 +01:00
Bilal Catic
a783d85f0a fix lexer specification - skip keywords if they are part of the search term 2020-02-09 22:29:35 +01:00
Bilal Catic
dc70c97ba1 use shift method to improve code 2020-02-09 22:26:10 +01:00
Bilal Catic
2078fabdbe Merge branch 'fix-missing-parts' into 'master'
Fix missing parts

See merge request saburly/reklamice/parser!4
2020-01-31 18:24:35 +00:00
Bilal Catic
91f699906a keep mappings over field array values 2020-01-31 19:23:10 +01:00
Bilal Catic
3a828c6fe9 remove obsolete comments 2020-01-31 17:51:30 +01:00
Bilal Catic
e521a4de09 raise error on unknown column; add complex query test 2020-01-31 17:44:12 +01:00
Bilal Catic
87712860dd remove double quotes from search term 2020-01-31 16:11:12 +01:00
Bilal Catic
84a48b4acf change LIKE to ILIKE 2020-01-31 15:10:48 +01:00
Bilal Catic
2689e212cb Merge branch 'query-generator' into 'master'
Query generator

See merge request saburly/reklamice/parser!3
2020-01-31 12:58:53 +00:00
Bilal Catic
793e26e01f handle special chars; write tests for special chars 2020-01-31 13:58:09 +01:00
Bilal Catic
9c2aff53d7 add tests for mixed operators expression; test precedence 2020-01-31 13:27:31 +01:00
Bilal Catic
0286f3ed81 add brackets to expression for precedence handling 2020-01-31 13:27:11 +01:00
Bilal Catic
2dc2453039 change instance variables to local variables 2020-01-31 13:15:27 +01:00
Bilal Catic
9a22804e62 add query generator and tests for query generator 2020-01-31 11:45:59 +01:00
Bilal Catic
6f412ba9b8 Add Gemfile 2020-01-27 08:51:21 +01:00
Bilal Catic
cf26304e9e Merge branch 'parser-part' into 'master'
Parser part

See merge request saburly/reklamice/parser!2
2020-01-27 07:18:02 +00:00
Bilal Catic
6459d04cec add more rules to grammar and write more tests to cover new rules 2020-01-27 08:17:33 +01:00
Bilal Catic
7d2e9b289f add more rules tu parser grammar and write more tests for new rules 2020-01-24 14:43:46 +01:00
Bilal Catic
2bf8f95896 add simple grammar rules and tests for simple cases 2020-01-23 23:00:16 +01:00
Bilal Catic
cb93670a58 setup files for parser part 2020-01-23 19:16:16 +01:00
Bilal Catic
323e815d5f remove pipe character from allowed set for unqoted term 2020-01-23 18:14:53 +01:00
Bilal Catic
265aeacf40 Merge branch 'lexer-part' into 'master'
Lexer part

See merge request saburly/reklamice/parser!1
2020-01-23 16:50:43 +00:00
Bilal Catic
d3c1594e3e add tests for lexer 2020-01-23 17:48:36 +01:00
Bilal Catic
b802bf7a9e add rules for lexer 2020-01-23 17:46:58 +01:00
Bilal Catic
c83a249c04 setup files for lexer part 2020-01-23 09:05:32 +01:00
Senad Uka
b26d697c6e Initial commit 2020-01-21 12:08:37 +00:00