blob: 58bbc9688d741c299c5b9e86ed5711d3136f3aeb [file] [log] [blame]
COSMAS:
- disjunctions with more than 2 arguments are parsed hiearchically by ANTLR grammar:
"A oder B oder C" becomes (simplified) "A|(B|C)"
- distance operators are a little hard to process, using a stack of "distantTokenGroups" containing empty tokens to keep track of
the operators, insert the tokenGroups on top of this stack before second argument
- using stacks proves to be a good choice for tree processing