You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did you perform a web search (google, yahoo, etc)?: YES
Description / Example code
So far my parser looks like this.
const parser = peg.generate(`
eq
= left:attribute "=" right:value { return left == right; }
and
= left:eq "AND" right:eq { return left && right; }
It is able to read queries like id = 2 AND createdOn = 193242. I want to be able to read id = 2 AND secondId = 444 AND createdOn = 193242 and so on... (Any number of "AND"s). How can I achieve this via PEG.js?
The text was updated successfully, but these errors were encountered:
Issue type
QUESTION
Prerequisites
Description / Example code
So far my parser looks like this.
It is able to read queries like
id = 2 AND createdOn = 193242
. I want to be able to readid = 2 AND secondId = 444 AND createdOn = 193242
and so on... (Any number of "AND"s). How can I achieve this via PEG.js?The text was updated successfully, but these errors were encountered: