Skip to content

Instantly share code, notes, and snippets.

@LironHazan
Created June 18, 2021 08:24
Show Gist options
  • Save LironHazan/f3a5fc1792cc24ed43937a2757258a3e to your computer and use it in GitHub Desktop.
Save LironHazan/f3a5fc1792cc24ed43937a2757258a3e to your computer and use it in GitHub Desktop.
consume dummy parser (for blog post)
let textWithSpaces = `foo == "hey there" && foo == "eatPizza"`;
let output = parseDummyQL(textWithSpaces);
console.log(output);
// [
// [ 'foo', '==', 'hey there ๐Ÿ•' ],
// [ '&&', [ 'foo', '==', 'eatPizza ๐Ÿ•' ] ]
// ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment