1 7 8 package com.ibm.icu.text; 9 10 19 class RBBIRuleParseTable 20 { 21 static final short doCheckVarDef = 1; 22 static final short doDotAny = 2; 23 static final short doEndAssign = 3; 24 static final short doEndOfRule = 4; 25 static final short doEndVariableName = 5; 26 static final short doExit = 6; 27 static final short doExprCatOperator = 7; 28 static final short doExprFinished = 8; 29 static final short doExprOrOperator = 9; 30 static final short doExprRParen = 10; 31 static final short doExprStart = 11; 32 static final short doLParen = 12; 33 static final short doNOP = 13; 34 static final short doOptionEnd = 14; 35 static final short doOptionStart = 15; 36 static final short doReverseDir = 16; 37 static final short doRuleChar = 17; 38 static final short doRuleError = 18; 39 static final short doRuleErrorAssignExpr = 19; 40 static final short doScanUnicodeSet = 20; 41 static final short doSlash = 21; 42 static final short doStartAssign = 22; 43 static final short doStartTagValue = 23; 44 static final short doStartVariableName = 24; 45 static final short doTagDigit = 25; 46 static final short doTagExpectedError = 26; 47 static final short doTagValue = 27; 48 static final short doUnaryOpPlus = 28; 49 static final short doUnaryOpQuestion = 29; 50 static final short doUnaryOpStar = 30; 51 static final short doVariableNameExpectedErr = 31; 52 53 static final short kRuleSet_default = 255; 54 static final short kRuleSet_digit_char = 128; 55 static final short kRuleSet_eof = 252; 56 static final short kRuleSet_escaped = 254; 57 static final short kRuleSet_name_char = 129; 58 static final short kRuleSet_name_start_char = 130; 59 static final short kRuleSet_rule_char = 131; 60 static final short kRuleSet_white_space = 132; 61 62 63 static class RBBIRuleTableElement { 64 short fAction; 65 short fCharClass; 66 short fNextState; 67 short fPushState; 68 boolean fNextChar; 69 String fStateName; 70 RBBIRuleTableElement(short a, int cc, int ns, int ps, boolean nc, String sn) { 71 fAction = a; 72 fCharClass = (short)cc; 73 fNextState = (short)ns; 74 fPushState = (short)ps; 75 fNextChar = nc; 76 fStateName = sn; 77 } 78 } 79 80 static RBBIRuleTableElement[] gRuleParseStateTable = { 81 new RBBIRuleTableElement(doNOP, 0, 0,0, true, null ) , new RBBIRuleTableElement(doExprStart, 254, 21, 8, false, "start") , new RBBIRuleTableElement(doNOP, 132, 1,0, true, null ) , new RBBIRuleTableElement(doExprStart,'$', 80, 90, false, null ) , new RBBIRuleTableElement(doNOP,'!', 11,0, true, null ) , new RBBIRuleTableElement(doNOP,';', 1,0, true, null ) , new RBBIRuleTableElement(doNOP, 252, 0,0, false, null ) , new RBBIRuleTableElement(doExprStart, 255, 21, 8, false, null ) , new RBBIRuleTableElement(doEndOfRule,';', 1,0, true, "break-rule-end") , new RBBIRuleTableElement(doNOP, 132, 8,0, true, null ) , new RBBIRuleTableElement(doRuleError, 255, 95,0, false, null ) , new RBBIRuleTableElement(doNOP,'!', 13,0, true, "rev-option") , new RBBIRuleTableElement(doReverseDir, 255, 20, 8, false, null ) , new RBBIRuleTableElement(doOptionStart, 130, 15,0, true, "option-scan1") , new RBBIRuleTableElement(doRuleError, 255, 95,0, false, null ) , new RBBIRuleTableElement(doNOP, 129, 15,0, true, "option-scan2") , new RBBIRuleTableElement(doOptionEnd, 255, 17,0, false, null ) , new RBBIRuleTableElement(doNOP,';', 1,0, true, "option-scan3") , new RBBIRuleTableElement(doNOP, 132, 17,0, true, null ) , new RBBIRuleTableElement(doRuleError, 255, 95,0, false, null ) , new RBBIRuleTableElement(doExprStart, 255, 21, 8, false, "reverse-rule") , new RBBIRuleTableElement(doRuleChar, 254, 30,0, true, "term") , new RBBIRuleTableElement(doNOP, 132, 21,0, true, null ) , new RBBIRuleTableElement(doRuleChar, 131, 30,0, true, null ) , new RBBIRuleTableElement(doNOP,'[', 86, 30, false, null ) , new RBBIRuleTableElement(doLParen,'(', 21, 30, true, null ) , new RBBIRuleTableElement(doNOP,'$', 80, 29, false, null ) , new RBBIRuleTableElement(doDotAny,'.', 30,0, true, null ) , new RBBIRuleTableElement(doRuleError, 255, 95,0, false, null ) , new RBBIRuleTableElement(doCheckVarDef, 255, 30,0, false, "term-var-ref") , new RBBIRuleTableElement(doNOP, 132, 30,0, true, "expr-mod") , new RBBIRuleTableElement(doUnaryOpStar,'*', 35,0, true, null ) , new RBBIRuleTableElement(doUnaryOpPlus,'+', 35,0, true, null ) , new RBBIRuleTableElement(doUnaryOpQuestion,'?', 35,0, true, null ) , new RBBIRuleTableElement(doNOP, 255, 35,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator, 254, 21,0, false, "expr-cont") , new RBBIRuleTableElement(doNOP, 132, 35,0, true, null ) , new RBBIRuleTableElement(doExprCatOperator, 131, 21,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator,'[', 21,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator,'(', 21,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator,'$', 21,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator,'.', 21,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator,'/', 47,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator,'{', 59,0, true, null ) , new RBBIRuleTableElement(doExprOrOperator,'|', 21,0, true, null ) , new RBBIRuleTableElement(doExprRParen,')', 255,0, true, null ) , new RBBIRuleTableElement(doExprFinished, 255, 255,0, false, null ) , new RBBIRuleTableElement(doSlash,'/', 49,0, true, "look-ahead") , new RBBIRuleTableElement(doNOP, 255, 95,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator, 254, 21,0, false, "expr-cont-no-slash") , new RBBIRuleTableElement(doNOP, 132, 35,0, true, null ) , new RBBIRuleTableElement(doExprCatOperator, 131, 21,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator,'[', 21,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator,'(', 21,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator,'$', 21,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator,'.', 21,0, false, null ) , new RBBIRuleTableElement(doExprOrOperator,'|', 21,0, true, null ) , new RBBIRuleTableElement(doExprRParen,')', 255,0, true, null ) , new RBBIRuleTableElement(doExprFinished, 255, 255,0, false, null ) , new RBBIRuleTableElement(doNOP, 132, 59,0, true, "tag-open") , new RBBIRuleTableElement(doStartTagValue, 128, 62,0, false, null ) , new RBBIRuleTableElement(doTagExpectedError, 255, 95,0, false, null ) , new RBBIRuleTableElement(doNOP, 132, 66,0, true, "tag-value") , new RBBIRuleTableElement(doNOP,'}', 66,0, false, null ) , new RBBIRuleTableElement(doTagDigit, 128, 62,0, true, null ) , new RBBIRuleTableElement(doTagExpectedError, 255, 95,0, false, null ) , new RBBIRuleTableElement(doNOP, 132, 66,0, true, "tag-close") , new RBBIRuleTableElement(doTagValue,'}', 69,0, true, null ) , new RBBIRuleTableElement(doTagExpectedError, 255, 95,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator, 254, 21,0, false, "expr-cont-no-tag") , new RBBIRuleTableElement(doNOP, 132, 69,0, true, null ) , new RBBIRuleTableElement(doExprCatOperator, 131, 21,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator,'[', 21,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator,'(', 21,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator,'$', 21,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator,'.', 21,0, false, null ) , new RBBIRuleTableElement(doExprCatOperator,'/', 47,0, false, null ) , new RBBIRuleTableElement(doExprOrOperator,'|', 21,0, true, null ) , new RBBIRuleTableElement(doExprRParen,')', 255,0, true, null ) , new RBBIRuleTableElement(doExprFinished, 255, 255,0, false, null ) , new RBBIRuleTableElement(doStartVariableName,'$', 82,0, true, "scan-var-name") , new RBBIRuleTableElement(doNOP, 255, 95,0, false, null ) , new RBBIRuleTableElement(doNOP, 130, 84,0, true, "scan-var-start") , new RBBIRuleTableElement(doVariableNameExpectedErr, 255, 95,0, false, null ) , new RBBIRuleTableElement(doNOP, 129, 84,0, true, "scan-var-body") , new RBBIRuleTableElement(doEndVariableName, 255, 255,0, false, null ) , new RBBIRuleTableElement(doScanUnicodeSet,'[', 255,0, true, "scan-unicode-set") , new RBBIRuleTableElement(doScanUnicodeSet,'p', 255,0, true, null ) , new RBBIRuleTableElement(doScanUnicodeSet,'P', 255,0, true, null ) , new RBBIRuleTableElement(doNOP, 255, 95,0, false, null ) , new RBBIRuleTableElement(doNOP, 132, 90,0, true, "assign-or-rule") , new RBBIRuleTableElement(doStartAssign,'=', 21, 93, true, null ) , new RBBIRuleTableElement(doNOP, 255, 29, 8, false, null ) , new RBBIRuleTableElement(doEndAssign,';', 1,0, true, "assign-end") , new RBBIRuleTableElement(doRuleErrorAssignExpr, 255, 95,0, false, null ) , new RBBIRuleTableElement(doExit, 255, 95,0, true, "errorDeath") }; 178 } 179 | Popular Tags |