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