📄 nomparsertokenmanager.java
字号:
/* Generated By:JavaCC: Do not edit this line. NomParserTokenManager.java *//* * Copyright (C) 2003-2007 University of Manchester * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * (or see http://www.gnu.org/copyleft/lesser.html) */package org.openscience.cdk.iupac.parser;import java.io.StringReader;import org.openscience.cdk.Molecule;import org.openscience.cdk.exception.*;import java.util.*;public class NomParserTokenManager implements NomParserConstants{ public java.io.PrintStream debugStream = System.out; public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }private final int jjStopStringLiteralDfa_0(int pos, long active0, long active1, long active2){ switch (pos) { case 0: if ((active0 & 0x1000000000L) != 0L || (active1 & 0x20010400000L) != 0L) return 8; if ((active0 & 0x100010000080L) != 0L || (active1 & 0x4200000000000000L) != 0L || (active2 & 0x800L) != 0L) return 5; return -1; case 1: if ((active2 & 0x800L) != 0L) return 4; return -1; default : return -1; }}private final int jjStartNfa_0(int pos, long active0, long active1, long active2){ return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0, active1, active2), pos + 1);}private final int jjStopAtPos(int pos, int kind){ jjmatchedKind = kind; jjmatchedPos = pos; return pos + 1;}private final int jjStartNfaWithStates_0(int pos, int kind, int state){ jjmatchedKind = kind; jjmatchedPos = pos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return pos + 1; } return jjMoveNfa_0(state, pos + 1);}private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 44: return jjStopAtPos(0, 5); case 45: return jjStopAtPos(0, 4); case 97: jjmatchedKind = 25; return jjMoveStringLiteralDfa1_0(0xe030008000000L, 0xc08000000020L, 0x80L); case 98: return jjMoveStringLiteralDfa1_0(0x1000000800000200L, 0x1000000200001L, 0x200L); case 99: return jjMoveStringLiteralDfa1_0(0x4400000301800000L, 0x10002204004000L, 0x500L); case 100: return jjMoveStringLiteralDfa1_0(0x80404000L, 0x1000000000002000L, 0x0L); case 101: jjmatchedKind = 44; return jjMoveStringLiteralDfa1_0(0x10000080L, 0x4200000000000000L, 0x800L); case 102: return jjMoveStringLiteralDfa1_0(0x800000400000000L, 0x0L, 0x1000L); case 103: return jjMoveStringLiteralDfa1_0(0x0L, 0x400090800000000L, 0x0L); case 104: return jjMoveStringLiteralDfa1_0(0x800000c3000L, 0x2000000002000100L, 0x0L); case 105: return jjMoveStringLiteralDfa1_0(0x1000000000L, 0x20010400000L, 0x0L); case 108: return jjMoveStringLiteralDfa1_0(0x40040000000000L, 0x200000000010L, 0x8002L); case 109: return jjMoveStringLiteralDfa1_0(0x2000000000000040L, 0x4020048000L, 0x2000L); case 110: return jjMoveStringLiteralDfa1_0(0x1002000200000L, 0x40000040000800L, 0x4020L); case 111: return jjMoveStringLiteralDfa1_0(0x30e04000100000L, 0x1000000L, 0x0L); case 112: return jjMoveStringLiteralDfa1_0(0x100008000020100L, 0xa8000180000000L, 0x48L); case 114: return jjMoveStringLiteralDfa1_0(0x200000000000000L, 0x8900202L, 0x0L); case 115: return jjMoveStringLiteralDfa1_0(0x8080000000000000L, 0x102000400020004L, 0x0L); case 116: return jjMoveStringLiteralDfa1_0(0x18000L, 0x8804140000091040L, 0x4L); case 117: return jjMoveStringLiteralDfa1_0(0x400L, 0x0L, 0x10L); case 118: return jjMoveStringLiteralDfa1_0(0x0L, 0x400L, 0x0L); case 121: return jjMoveStringLiteralDfa1_0(0x60000000L, 0x8L, 0x1L); case 122: return jjMoveStringLiteralDfa1_0(0x0L, 0x1000000080L, 0x0L); default : return jjMoveNfa_0(0, 0); }}private final int jjMoveStringLiteralDfa1_0(long active0, long active1, long active2){ try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(0, active0, active1, active2); return 1; } switch(curChar) { case 97: return jjMoveStringLiteralDfa2_0(active0, 0x6020000000000000L, active1, 0x500012082041513L, active2, 0x8400L); case 99: return jjMoveStringLiteralDfa2_0(active0, 0x100000L, active1, 0x24L, active2, 0L); case 101: return jjMoveStringLiteralDfa2_0(active0, 0x14000000004f3040L, active1, 0x8562840200a0000L, active2, 0x3220L); case 104: return jjMoveStringLiteralDfa2_0(active0, 0x8200000000L, active1, 0x8000040008104000L, active2, 0x4L); case 105: if ((active0 & 0x80000000L) != 0L) return jjStopAtPos(1, 31); return jjMoveStringLiteralDfa2_0(active0, 0x41442000000000L, active1, 0x11014400008c0L, active2, 0x800L); case 108: if ((active0 & 0x40000000L) != 0L) return jjStopAtPos(1, 30); else if ((active0 & 0x200000000000L) != 0L) return jjStopAtPos(1, 45); else if ((active0 & 0x2000000000000L) != 0L) { jjmatchedKind = 49; jjmatchedPos = 1; } return jjMoveStringLiteralDfa2_0(active0, 0x20400000000L, active1, 0x8100000000L, active2, 0x40L); case 109: return jjMoveStringLiteralDfa2_0(active0, 0xc010000000000L, active1, 0L, active2, 0x80L); case 110: if ((active0 & 0x8000000L) != 0L) { jjmatchedKind = 27; jjmatchedPos = 1; } else if ((active0 & 0x10000000L) != 0L) return jjStopAtPos(1, 28); else if ((active0 & 0x20000000L) != 0L) return jjStopAtPos(1, 29); return jjMoveStringLiteralDfa2_0(active0, 0x10000000000400L, active1, 0x820000000000L, active2, 0L); case 111: if ((active0 & 0x4000L) != 0L) return jjStopAtPos(1, 14); return jjMoveStringLiteralDfa2_0(active0, 0x180001001a00000L, active1, 0x2008000a04208000L, active2, 0x4000L); case 114: return jjMoveStringLiteralDfa2_0(active0, 0x800000800008100L, active1, 0x40a0400010400000L, active2, 0x18L); case 115: return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x1000000L, active2, 0L); case 116: return jjMoveStringLiteralDfa2_0(active0, 0x8000000000000080L, active1, 0x8L, active2, 0x1L); case 117: return jjMoveStringLiteralDfa2_0(active0, 0x200000000000200L, active1, 0x200000000812200L, active2, 0x102L); case 120: return jjMoveStringLiteralDfa2_0(active0, 0x4000000000L, active1, 0L, active2, 0L); case 121: return jjMoveStringLiteralDfa2_0(active0, 0x880100000000L, active1, 0x1000000000000000L, active2, 0L); default : break; } return jjStartNfa_0(0, active0, active1, active2);}private final int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1, long old2, long active2){ if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L) return jjStartNfa_0(0, old0, old1, old2); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(1, active0, active1, active2); return 2; } switch(curChar) { case 97: return jjMoveStringLiteralDfa3_0(active0, 0x800000000000000L, active1, 0x20240100020004L, active2, 0x10L); case 98: return jjMoveStringLiteralDfa3_0(active0, 0x200000000000000L, active1, 0x4000000004002000L, active2, 0x4000L); case 99: if ((active0 & 0x400000L) != 0L) return jjStopAtPos(2, 22); return jjMoveStringLiteralDfa3_0(active0, 0x400100000000L, active1, 0x40080000L, active2, 0L); case 100: return jjMoveStringLiteralDfa3_0(active0, 0x80081000000400L, active1, 0x400022000000002L, active2, 0L); case 101: if ((active0 & 0x10000000000000L) != 0L) return jjStopAtPos(2, 52); return jjMoveStringLiteralDfa3_0(active0, 0x8000000000L, active1, 0x100000L, active2, 0x80L); case 102: return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x100L, active2, 0L); case 103: return jjMoveStringLiteralDfa3_0(active0, 0x2000000000000000L, active1, 0L, active2, 0L); case 104: if ((active0 & 0x80L) != 0L) return jjStopAtPos(2, 7); return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x200000L, active2, 0L); case 105: if ((active0 & 0x8000L) != 0L) return jjStopAtPos(2, 15); return jjMoveStringLiteralDfa3_0(active0, 0xc010000000000L, active1, 0x30000000L, active2, 0L); case 108: return jjMoveStringLiteralDfa3_0(active0, 0x4000800200000000L, active1, 0x200e010c80008000L, active2, 0x400L); case 109: return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1000000L, active2, 0L); case 110: if ((active0 & 0x2000L) != 0L) { jjmatchedKind = 13; jjmatchedPos = 2; } else if ((active0 & 0x200000L) != 0L) return jjStopAtPos(2, 21); else if ((active1 & 0x100000000000L) != 0L) return jjStopAtPos(2, 108); return jjMoveStringLiteralDfa3_0(active0, 0x1021000L, active1, 0x100001000051410L, active2, 0x2800L); case 111: if ((active0 & 0x4000000000L) != 0L) return jjStopAtPos(2, 38); return jjMoveStringLiteralDfa3_0(active0, 0x800000100L, active1, 0xc0000008400800L, active2, 0xcL); case 112: return jjMoveStringLiteralDfa3_0(active0, 0x80000L, active1, 0x200000000L, active2, 0x20L); case 114: return jjMoveStringLiteralDfa3_0(active0, 0x9000000000000000L, active1, 0xa10084000004081L, active2, 0x1300L); case 115: if ((active0 & 0x800000L) != 0L) return jjStopAtPos(2, 23); return jjMoveStringLiteralDfa3_0(active0, 0x400000000000000L, active1, 0x1001400002000000L, active2, 0L); case 116: if ((active0 & 0x200L) != 0L) return jjStopAtPos(2, 9); else if ((active0 & 0x100000L) != 0L) return jjStopAtPos(2, 20); return jjMoveStringLiteralDfa3_0(active0, 0x161042000010040L, active1, 0x800000800268L, active2, 0x3L); case 117: return jjMoveStringLiteralDfa3_0(active0, 0x20400000000L, active1, 0x8000008000000000L, active2, 0x40L); case 119: return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0L, active2, 0x8000L); case 120: if ((active0 & 0x40000L) != 0L) return jjStopAtPos(2, 18); break; default : break; } return jjStartNfa_0(1, active0, active1, active2);}private final int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1, long old2, long active2){ if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L) return jjStartNfa_0(1, old0, old1, old2); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(2, active0, active1, active2); return 3; } switch(curChar) { case 32: return jjMoveStringLiteralDfa4_0(active0, 0xc00000000000L, active1, 0L, active2, 0L); case 97: return jjMoveStringLiteralDfa4_0(active0, 0x100000000000000L, active1, 0x100000004000440L, active2, 0L); case 98: return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x800000000020800L, active2, 0L); case 99: if ((active1 & 0x1000000000L) != 0L) return jjStopAtPos(3, 100); return jjMoveStringLiteralDfa4_0(active0, 0x4000000000000000L, active1, 0x4000000080L, active2, 0L); case 100: if ((active1 & 0x800000000L) != 0L) return jjStopAtPos(3, 99); else if ((active1 & 0x200000000000L) != 0L) return jjStopAtPos(3, 109);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -