SquireTournamentServices / mtg-search-engine

This repo will have the AST for the mtg search engine. This repo is for checking if a card matches a query. It will (when I get round to it) have implementations in an array of languages.
The Unlicense
2 stars 1 forks source link

brackets in parser cause issues #14

Closed djpiper28 closed 1 year ago

djpiper28 commented 1 year ago
  1. Nested brackets will cause the parser to generate incorrect output.
  2. Brackets do not provide the correct associative properties

Fix: Use a stack to store the parent before the bracketed statement such that it can be handled correctly