| 146 | } |
| 147 | |
| 148 | func isMathFunc(f string) bool { |
| 149 | // While adding an op, also add it to the corresponding function type. |
| 150 | return f == "*" || f == "%" || f == "+" || f == "-" || f == "/" || |
| 151 | f == "exp" || f == "ln" || f == "cond" || |
| 152 | f == "<" || f == ">" || f == ">=" || f == "<=" || |
| 153 | f == "==" || f == "!=" || |
| 154 | f == "min" || f == "max" || f == "sqrt" || |
| 155 | f == "pow" || f == "logbase" || f == "floor" || f == "ceil" || |
| 156 | f == "since" || f == "dot" |
| 157 | } |
| 158 | |
| 159 | func parseMathFunc(gq *GraphQuery, it *lex.ItemIterator, again bool) (*MathTree, bool, error) { |
| 160 | if !again { |