Improve the BNF description a bit and fix some issues

This commit is contained in:
Guillaume Gomez 2022-03-28 16:14:00 +02:00
parent 1f5c4c2b30
commit da829d8d9d
5 changed files with 201 additions and 40 deletions

View file

@ -1,4 +1,4 @@
const QUERY = ['A<B<C<D>, E>', 'p<> u8'];
const QUERY = ['A<B<C<D>, E>', 'p<> u8', '"p"<a>'];
const PARSED = [
{
@ -34,4 +34,29 @@ const PARSED = [
userQuery: "p<> u8",
error: null,
},
{
elems: [
{
name: "p",
fullPath: ["p"],
pathWithoutLast: [],
pathLast: "p",
generics: [
{
name: "a",
fullPath: ["a"],
pathWithoutLast: [],
pathLast: "a",
generics: [],
},
],
},
],
foundElems: 1,
original: '"p"<a>',
returned: [],
typeFilter: -1,
userQuery: '"p"<a>',
error: null,
},
];