]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.spreadsheet.common/src/org/simantics/spreadsheet/common/expression/parser/TokenIndex.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.spreadsheet.common / src / org / simantics / spreadsheet / common / expression / parser / TokenIndex.java
diff --git a/bundles/org.simantics.spreadsheet.common/src/org/simantics/spreadsheet/common/expression/parser/TokenIndex.java b/bundles/org.simantics.spreadsheet.common/src/org/simantics/spreadsheet/common/expression/parser/TokenIndex.java
new file mode 100644 (file)
index 0000000..f32e7c1
--- /dev/null
@@ -0,0 +1,130 @@
+/*******************************************************************************\r
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ *     VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+/* This file was generated by SableCC (http://www.sablecc.org/). */\r
+\r
+package org.simantics.spreadsheet.common.expression.parser;\r
+\r
+import org.simantics.spreadsheet.common.expression.node.*;\r
+import org.simantics.spreadsheet.common.expression.analysis.*;\r
+\r
+class TokenIndex extends AnalysisAdapter\r
+{\r
+    int index;\r
+\r
+    @Override\r
+    public void caseTLessThan(@SuppressWarnings("unused") TLessThan node)\r
+    {\r
+        this.index = 0;\r
+    }\r
+\r
+    @Override\r
+    public void caseTGreaterThan(@SuppressWarnings("unused") TGreaterThan node)\r
+    {\r
+        this.index = 1;\r
+    }\r
+\r
+    @Override\r
+    public void caseTEqual(@SuppressWarnings("unused") TEqual node)\r
+    {\r
+        this.index = 2;\r
+    }\r
+\r
+    @Override\r
+    public void caseTPlus(@SuppressWarnings("unused") TPlus node)\r
+    {\r
+        this.index = 3;\r
+    }\r
+\r
+    @Override\r
+    public void caseTMinus(@SuppressWarnings("unused") TMinus node)\r
+    {\r
+        this.index = 4;\r
+    }\r
+\r
+    @Override\r
+    public void caseTMult(@SuppressWarnings("unused") TMult node)\r
+    {\r
+        this.index = 5;\r
+    }\r
+\r
+    @Override\r
+    public void caseTDiv(@SuppressWarnings("unused") TDiv node)\r
+    {\r
+        this.index = 6;\r
+    }\r
+\r
+    @Override\r
+    public void caseTAmpersand(@SuppressWarnings("unused") TAmpersand node)\r
+    {\r
+        this.index = 7;\r
+    }\r
+\r
+    @Override\r
+    public void caseTComma(@SuppressWarnings("unused") TComma node)\r
+    {\r
+        this.index = 8;\r
+    }\r
+\r
+    @Override\r
+    public void caseTColon(@SuppressWarnings("unused") TColon node)\r
+    {\r
+        this.index = 9;\r
+    }\r
+\r
+    @Override\r
+    public void caseTLPar(@SuppressWarnings("unused") TLPar node)\r
+    {\r
+        this.index = 10;\r
+    }\r
+\r
+    @Override\r
+    public void caseTRPar(@SuppressWarnings("unused") TRPar node)\r
+    {\r
+        this.index = 11;\r
+    }\r
+\r
+    @Override\r
+    public void caseTFunc(@SuppressWarnings("unused") TFunc node)\r
+    {\r
+        this.index = 12;\r
+    }\r
+\r
+    @Override\r
+    public void caseTCell(@SuppressWarnings("unused") TCell node)\r
+    {\r
+        this.index = 13;\r
+    }\r
+\r
+    @Override\r
+    public void caseTNumber(@SuppressWarnings("unused") TNumber node)\r
+    {\r
+        this.index = 14;\r
+    }\r
+\r
+    @Override\r
+    public void caseTString(@SuppressWarnings("unused") TString node)\r
+    {\r
+        this.index = 15;\r
+    }\r
+\r
+    @Override\r
+    public void caseTNewLine(@SuppressWarnings("unused") TNewLine node)\r
+    {\r
+        this.index = 16;\r
+    }\r
+\r
+    @Override\r
+    public void caseEOF(@SuppressWarnings("unused") EOF node)\r
+    {\r
+        this.index = 17;\r
+    }\r
+}\r