2023-03-16 14:54:10 +00:00
|
|
|
# mtgsearch
|
2023-04-28 19:08:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
```
|
2023-04-28 19:39:04 +00:00
|
|
|
((IS Instant) union (Color Red)) union (Color Green)
|
2023-04-28 19:08:56 +00:00
|
|
|
```
|