Simplify parser syntax

This commit is contained in:
Guillaume Gomez
2022-02-09 20:56:37 +01:00
parent 99d552092c
commit 49297337b4
11 changed files with 50 additions and 205 deletions

View File

@@ -1,8 +1,7 @@
const QUERY = ['-> "p"', '("p")'];
const QUERY = ['-> "p"'];
const PARSED = [
{
args: [],
elems: [],
foundElems: 1,
original: "-> \"p\"",
@@ -17,20 +16,4 @@ const PARSED = [
userQuery: "-> \"p\"",
error: null,
},
{
args: [{
name: "p",
fullPath: ["p"],
pathWithoutLast: [],
pathLast: "p",
generics: [],
}],
elems: [],
foundElems: 1,
original: "(\"p\")",
returned: [],
typeFilter: -1,
userQuery: "(\"p\")",
error: null,
},
];