]> gerrit.simantics Code Review - simantics/platform.git/blob - 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
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 /* This file was generated by SableCC (http://www.sablecc.org/). */
13
14 package org.simantics.spreadsheet.common.expression.parser;
15
16 import org.simantics.spreadsheet.common.expression.node.*;
17 import org.simantics.spreadsheet.common.expression.analysis.*;
18
19 class TokenIndex extends AnalysisAdapter
20 {
21     int index;
22
23     @Override
24     public void caseTLessThan(@SuppressWarnings("unused") TLessThan node)
25     {
26         this.index = 0;
27     }
28
29     @Override
30     public void caseTGreaterThan(@SuppressWarnings("unused") TGreaterThan node)
31     {
32         this.index = 1;
33     }
34
35     @Override
36     public void caseTEqual(@SuppressWarnings("unused") TEqual node)
37     {
38         this.index = 2;
39     }
40
41     @Override
42     public void caseTPlus(@SuppressWarnings("unused") TPlus node)
43     {
44         this.index = 3;
45     }
46
47     @Override
48     public void caseTMinus(@SuppressWarnings("unused") TMinus node)
49     {
50         this.index = 4;
51     }
52
53     @Override
54     public void caseTMult(@SuppressWarnings("unused") TMult node)
55     {
56         this.index = 5;
57     }
58
59     @Override
60     public void caseTDiv(@SuppressWarnings("unused") TDiv node)
61     {
62         this.index = 6;
63     }
64
65     @Override
66     public void caseTAmpersand(@SuppressWarnings("unused") TAmpersand node)
67     {
68         this.index = 7;
69     }
70
71     @Override
72     public void caseTComma(@SuppressWarnings("unused") TComma node)
73     {
74         this.index = 8;
75     }
76
77     @Override
78     public void caseTColon(@SuppressWarnings("unused") TColon node)
79     {
80         this.index = 9;
81     }
82
83     @Override
84     public void caseTLPar(@SuppressWarnings("unused") TLPar node)
85     {
86         this.index = 10;
87     }
88
89     @Override
90     public void caseTRPar(@SuppressWarnings("unused") TRPar node)
91     {
92         this.index = 11;
93     }
94
95     @Override
96     public void caseTFunc(@SuppressWarnings("unused") TFunc node)
97     {
98         this.index = 12;
99     }
100
101     @Override
102     public void caseTCell(@SuppressWarnings("unused") TCell node)
103     {
104         this.index = 13;
105     }
106
107     @Override
108     public void caseTNumber(@SuppressWarnings("unused") TNumber node)
109     {
110         this.index = 14;
111     }
112
113     @Override
114     public void caseTString(@SuppressWarnings("unused") TString node)
115     {
116         this.index = 15;
117     }
118
119     @Override
120     public void caseTNewLine(@SuppressWarnings("unused") TNewLine node)
121     {
122         this.index = 16;
123     }
124
125     @Override
126     public void caseEOF(@SuppressWarnings("unused") EOF node)
127     {
128         this.index = 17;
129     }
130 }