| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| |
| package org.apache.uima.ruta.ide.parser.ast; |
| |
| import java.util.HashMap; |
| import java.util.Map; |
| |
| import org.apache.uima.ruta.parser.RutaLexer; |
| import org.eclipse.dltk.ast.expressions.ExpressionConstants; |
| |
| public final class RutaExpressionConstants implements ExpressionConstants { |
| public static final int E_EXP = USER_EXPRESSION_START + RutaLexer.EXP; |
| |
| public static final int E_LOGN = USER_EXPRESSION_START + RutaLexer.LOGN; |
| |
| public static final int E_SIN = USER_EXPRESSION_START + RutaLexer.SIN; |
| |
| public static final int E_COS = USER_EXPRESSION_START + RutaLexer.COS; |
| |
| public static final int E_TAN = USER_EXPRESSION_START + RutaLexer.TAN; |
| |
| public static final int E_QUANTIFIER_LIT = USER_EXPRESSION_START + RutaLexer.QUESTION; |
| |
| public static final int E_INNERLIST = USER_EXPRESSION_START + RutaLexer.RBRACK; |
| |
| public static final int E_RESSOURCE = USER_EXPRESSION_START + RutaLexer.RessourceLiteral; |
| |
| public static final String E_EXP_STR = "EXP"; |
| |
| public static final String E_LOGN_STR = "LOGN"; |
| |
| public static final String E_SIN_STR = "SIN"; |
| |
| public static final String E_COS_STR = "COS"; |
| |
| public static final String E_TAN_STR = "TAN"; |
| |
| public static final String E_RESSOURCE_STR = "RESSOURCE"; |
| |
| public static final String E_QUANTIFIER_LIT_STR = "QUANTIFIER"; |
| |
| public static final String E_INNERLIST_STR = "INNERLIST"; |
| |
| public static final Map<String, Integer> opIDs = new HashMap<String, Integer>(); |
| |
| static { |
| opIDs.put(E_EXP_STR, Integer.valueOf(E_EXP)); |
| opIDs.put(E_LOGN_STR, Integer.valueOf(E_LOGN)); |
| opIDs.put(E_SIN_STR, Integer.valueOf(E_SIN)); |
| opIDs.put(E_COS_STR, Integer.valueOf(E_COS)); |
| opIDs.put(E_TAN_STR, Integer.valueOf(E_TAN)); |
| opIDs.put(E_RESSOURCE_STR, Integer.valueOf(E_RESSOURCE)); |
| opIDs.put(E_QUANTIFIER_LIT_STR, Integer.valueOf(E_QUANTIFIER_LIT)); |
| opIDs.put(E_INNERLIST_STR, Integer.valueOf(E_INNERLIST)); |
| } |
| } |