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