X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.spreadsheet.common%2Fsrc%2Forg%2Fsimantics%2Fspreadsheet%2Fcommon%2Fexpression%2Fparser%2FTokenIndex.java;fp=bundles%2Forg.simantics.spreadsheet.common%2Fsrc%2Forg%2Fsimantics%2Fspreadsheet%2Fcommon%2Fexpression%2Fparser%2FTokenIndex.java;h=4f266db27133ec92e0dcf994ad13e3363943dc6d;hp=f32e7c169e04dd16bb788f454883bdf46b75278d;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 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 index f32e7c169..4f266db27 100644 --- 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 @@ -1,130 +1,130 @@ -/******************************************************************************* - * 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; - } -} +/******************************************************************************* + * 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; + } +}