Joachim Bingel | 4b405f5 | 2013-11-15 15:29:30 +0000 | [diff] [blame^] | 1 | COSMAS: |
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 |