1
Fork 0

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 = ['-> F<P>', '-> P'];
const QUERY = ['-> F<P>', '-> P', '->,a', 'aaaaa->a'];
const PARSED = [
{
@ -39,4 +39,40 @@ const PARSED = [
userQuery: "-> p",
error: null,
},
{
elems: [],
foundElems: 1,
original: "->,a",
returned: [{
name: "a",
fullPath: ["a"],
pathWithoutLast: [],
pathLast: "a",
generics: [],
}],
typeFilter: -1,
userQuery: "->,a",
error: null,
},
{
elems: [{
name: "aaaaa",
fullPath: ["aaaaa"],
pathWithoutLast: [],
pathLast: "aaaaa",
generics: [],
}],
foundElems: 2,
original: "aaaaa->a",
returned: [{
name: "a",
fullPath: ["a"],
pathWithoutLast: [],
pathLast: "a",
generics: [],
}],
typeFilter: -1,
userQuery: "aaaaa->a",
error: null,
},
];