Make query parser more strict and improve display of errors

This commit is contained in:
Guillaume Gomez
2022-01-09 15:12:46 +01:00
parent 264064df36
commit 99d552092c
7 changed files with 243 additions and 142 deletions

View File

@@ -1,4 +1,4 @@
const QUERY = ['<P>', 'A<B<C<D>, E>', 'p<> u8'];
const QUERY = ['<P>', 'A<B<C<D>, E>', 'p<> u8'];
const PARSED = [
{
@@ -66,10 +66,10 @@ const PARSED = [
],
}],
foundElems: 1,
original: 'A<B<C<D>, E>',
original: 'A<B<C<D>, E>',
returned: [],
typeFilter: -1,
userQuery: 'a<b<c<d>, e>',
userQuery: 'a<b<c<d>, e>',
error: null,
},
{