Hi,
I went through the document, this parser u have requested is more of an Algorithm and Regex oriented task than a JavaScript task.
intput = `a=1, b="two", c=[1, "two", [1,2,3], {a:1}], d=sqrt(x), e = 5*y + 3, f="q=[1,2,3]", g = a ~ b + c`
output = {
a: 1, - just number followed by , (comma)
b: "two", - quoted string
c: [1, "two", [1,2,3], {a:1}], - Object
d: 4, -
e: -2, -
f: "q=[1,2,3]", - object as string
g: "a ~ b + c" - expression as string
}
this conversation has lot of rules and we need to confirm all the rules with lot of examples.
I can do this within a short time. provided lot sample inputs to test the parser.