A DSL powered search engine for magic the gathering cards
app | ||
Config | ||
src | ||
test | ||
.gitignore | ||
CHANGELOG.md | ||
LICENSE | ||
mtgsearch.cabal | ||
package.yaml | ||
README.md | ||
Setup.hs | ||
stack.yaml | ||
stack.yaml.lock |
mtgsearch
Developement of a custom magic card search engine.
DSL
Will be a language based in set theory, where queries can be combined, negated etc etc. Example.
Lexer
This languages lexer is very dumb. Therefore you the user has to be very verbose with your parenthesis. Example:
This will not work:
(IS Instant) union (Color Red) union (Color Green)
However this will
((IS Instant) union (Color Red) union (Color Green))