Want more features on Pastebin? Sign Up, it's FREE!
Guest

Date Time Parser S/R errors

By: a guest on Feb 11th, 2013  |  syntax: None  |  size: 12.92 KB  |  views: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2.  
  3. -*-=-*-=-*-=-*-=-*-      LALR PARSING TABLE      -*-=-*-=-*-=-*-=-*-
  4.  
  5.  
  6. +-------------------------     STATE 0     -------------------------+
  7.  
  8. + CONFLICTS:
  9.  
  10.  
  11. + RULES:
  12.  
  13.         $accept : ^Start $end
  14.  
  15. + ACTIONS AND GOTOS:
  16.  
  17.       _DTP_LONG : shift & new state 12
  18.        _DTP_SDF : shift & new state 11
  19.      _DTP_MONTH : shift & new state 13
  20.                 : error
  21.  
  22.           Start : goto state 1
  23. DateTimeShortExpr : goto state 2
  24. DateTimeLongExpr : goto state 3
  25. SDFDateTimeExpr : goto state 4
  26.   DateShortExpr : goto state 5
  27.    DateLongExpr : goto state 6
  28.       MonthExpr : goto state 7
  29.          Number : goto state 9
  30.        AbsMonth : goto state 10
  31.       SDFNumber : goto state 8
  32.  
  33. +-------------------------     STATE 1     -------------------------+
  34.  
  35. + CONFLICTS:
  36.  
  37.  
  38. + RULES:
  39.  
  40.         $accept :  Start^$end
  41.  
  42. + ACTIONS AND GOTOS:
  43.  
  44.            $end : accept
  45.                 : error
  46.  
  47.  
  48. +-------------------------     STATE 2     -------------------------+
  49.  
  50. + CONFLICTS:
  51.  
  52.  
  53. + RULES:
  54.  
  55.           Start :  DateTimeShortExpr^    (rule 1)
  56.  
  57. + ACTIONS AND GOTOS:
  58.  
  59.                 : reduce by rule 1
  60.  
  61.  
  62. +-------------------------     STATE 3     -------------------------+
  63.  
  64. + CONFLICTS:
  65.  
  66.  
  67. + RULES:
  68.  
  69.           Start :  DateTimeLongExpr^    (rule 2)
  70.  
  71. + ACTIONS AND GOTOS:
  72.  
  73.                 : reduce by rule 2
  74.  
  75.  
  76. +-------------------------     STATE 4     -------------------------+
  77.  
  78. + CONFLICTS:
  79.  
  80.  
  81. + RULES:
  82.  
  83.           Start :  SDFDateTimeExpr^EOS
  84.  
  85. + ACTIONS AND GOTOS:
  86.  
  87.        _DTP_EOS : shift & new state 15
  88.                 : error
  89.  
  90.             EOS : goto state 14
  91.  
  92. +-------------------------     STATE 5     -------------------------+
  93.  
  94. + CONFLICTS:
  95.  
  96.  
  97. + RULES:
  98.  
  99.           Start :  DateShortExpr^EOS
  100. DateTimeShortExpr :  DateShortExpr^TimeExpr EOS
  101. DateTimeShortExpr :  DateShortExpr^AMPMTimeExpr EOS
  102.  
  103. + ACTIONS AND GOTOS:
  104.  
  105.       _DTP_LONG : shift & new state 12
  106.        _DTP_EOS : shift & new state 15
  107.         _DTP_AM : shift & new state 20
  108.         _DTP_PM : shift & new state 21
  109.                 : error
  110.  
  111.             EOS : goto state 16
  112.        TimeExpr : goto state 17
  113.    AMPMTimeExpr : goto state 18
  114.          Number : goto state 19
  115.  
  116. +-------------------------     STATE 6     -------------------------+
  117.  
  118. + CONFLICTS:
  119.  
  120.  
  121. + RULES:
  122.  
  123.           Start :  DateLongExpr^EOS
  124. DateTimeLongExpr :  DateLongExpr^TimeExpr EOS
  125. DateTimeLongExpr :  DateLongExpr^AMPMTimeExpr EOS
  126.  
  127. + ACTIONS AND GOTOS:
  128.  
  129.       _DTP_LONG : shift & new state 12
  130.        _DTP_EOS : shift & new state 15
  131.         _DTP_AM : shift & new state 20
  132.         _DTP_PM : shift & new state 21
  133.                 : error
  134.  
  135.             EOS : goto state 22
  136.        TimeExpr : goto state 23
  137.    AMPMTimeExpr : goto state 24
  138.          Number : goto state 19
  139.  
  140. +-------------------------     STATE 7     -------------------------+
  141.  
  142. + CONFLICTS:
  143.  
  144.  
  145. + RULES:
  146.  
  147.           Start :  MonthExpr^EOS
  148.  
  149. + ACTIONS AND GOTOS:
  150.  
  151.        _DTP_EOS : shift & new state 15
  152.                 : error
  153.  
  154.             EOS : goto state 25
  155.  
  156. +-------------------------     STATE 8     -------------------------+
  157.  
  158. + CONFLICTS:
  159.  
  160.  
  161. + RULES:
  162.  
  163. SDFDateTimeExpr :  SDFNumber^    (rule 23)
  164.  
  165. + ACTIONS AND GOTOS:
  166.  
  167.                 : reduce by rule 23
  168.  
  169.  
  170. +-------------------------     STATE 9     -------------------------+
  171.  
  172. + CONFLICTS:
  173.  
  174. ? sft/red (shift & new state 12, rule 11) on _DTP_LONG
  175.  
  176. + RULES:
  177.  
  178.   DateShortExpr :  Number^    (rule 11)
  179.   DateShortExpr :  Number^Number
  180.   DateShortExpr :  Number^Number Number
  181.    DateLongExpr :  Number^AbsMonth
  182.    DateLongExpr :  Number^AbsMonth Number
  183.  
  184. + ACTIONS AND GOTOS:
  185.  
  186.       _DTP_LONG : shift & new state 12
  187.      _DTP_MONTH : shift & new state 13
  188.                 : reduce by rule 11
  189.  
  190.          Number : goto state 26
  191.        AbsMonth : goto state 27
  192.  
  193. +-------------------------     STATE 10     -------------------------+
  194.  
  195. + CONFLICTS:
  196.  
  197.  
  198. + RULES:
  199.  
  200.       MonthExpr :  AbsMonth^    (rule 24)
  201.       MonthExpr :  AbsMonth^Number
  202.  
  203. + ACTIONS AND GOTOS:
  204.  
  205.       _DTP_LONG : shift & new state 12
  206.                 : reduce by rule 24
  207.  
  208.          Number : goto state 28
  209.  
  210. +-------------------------     STATE 11     -------------------------+
  211.  
  212. + CONFLICTS:
  213.  
  214.  
  215. + RULES:
  216.  
  217.       SDFNumber :  _DTP_SDF^    (rule 27)
  218.  
  219. + ACTIONS AND GOTOS:
  220.  
  221.                 : reduce by rule 27
  222.  
  223.  
  224. +-------------------------     STATE 12     -------------------------+
  225.  
  226. + CONFLICTS:
  227.  
  228.  
  229. + RULES:
  230.  
  231.          Number :  _DTP_LONG^    (rule 26)
  232.  
  233. + ACTIONS AND GOTOS:
  234.  
  235.                 : reduce by rule 26
  236.  
  237.  
  238. +-------------------------     STATE 13     -------------------------+
  239.  
  240. + CONFLICTS:
  241.  
  242.  
  243. + RULES:
  244.  
  245.        AbsMonth :  _DTP_MONTH^    (rule 29)
  246.  
  247. + ACTIONS AND GOTOS:
  248.  
  249.                 : reduce by rule 29
  250.  
  251.  
  252. +-------------------------     STATE 14     -------------------------+
  253.  
  254. + CONFLICTS:
  255.  
  256.  
  257. + RULES:
  258.  
  259.           Start :  SDFDateTimeExpr EOS^    (rule 3)
  260.  
  261. + ACTIONS AND GOTOS:
  262.  
  263.                 : reduce by rule 3
  264.  
  265.  
  266. +-------------------------     STATE 15     -------------------------+
  267.  
  268. + CONFLICTS:
  269.  
  270.  
  271. + RULES:
  272.  
  273.             EOS :  _DTP_EOS^    (rule 28)
  274.  
  275. + ACTIONS AND GOTOS:
  276.  
  277.                 : reduce by rule 28
  278.  
  279.  
  280. +-------------------------     STATE 16     -------------------------+
  281.  
  282. + CONFLICTS:
  283.  
  284.  
  285. + RULES:
  286.  
  287.           Start :  DateShortExpr EOS^    (rule 4)
  288.  
  289. + ACTIONS AND GOTOS:
  290.  
  291.                 : reduce by rule 4
  292.  
  293.  
  294. +-------------------------     STATE 17     -------------------------+
  295.  
  296. + CONFLICTS:
  297.  
  298.  
  299. + RULES:
  300.  
  301. DateTimeShortExpr :  DateShortExpr TimeExpr^EOS
  302.    AMPMTimeExpr :  TimeExpr^_DTP_AM
  303.    AMPMTimeExpr :  TimeExpr^_DTP_PM
  304.  
  305. + ACTIONS AND GOTOS:
  306.  
  307.        _DTP_EOS : shift & new state 15
  308.         _DTP_AM : shift & new state 30
  309.         _DTP_PM : shift & new state 31
  310.                 : error
  311.  
  312.             EOS : goto state 29
  313.  
  314. +-------------------------     STATE 18     -------------------------+
  315.  
  316. + CONFLICTS:
  317.  
  318.  
  319. + RULES:
  320.  
  321. DateTimeShortExpr :  DateShortExpr AMPMTimeExpr^EOS
  322.  
  323. + ACTIONS AND GOTOS:
  324.  
  325.        _DTP_EOS : shift & new state 15
  326.                 : error
  327.  
  328.             EOS : goto state 32
  329.  
  330. +-------------------------     STATE 19     -------------------------+
  331.  
  332. + CONFLICTS:
  333.  
  334.  
  335. + RULES:
  336.  
  337.        TimeExpr :  Number^    (rule 16)
  338.        TimeExpr :  Number^Number
  339.        TimeExpr :  Number^Number Number
  340.  
  341. + ACTIONS AND GOTOS:
  342.  
  343.       _DTP_LONG : shift & new state 12
  344.                 : reduce by rule 16
  345.  
  346.          Number : goto state 33
  347.  
  348. +-------------------------     STATE 20     -------------------------+
  349.  
  350. + CONFLICTS:
  351.  
  352.  
  353. + RULES:
  354.  
  355.    AMPMTimeExpr :  _DTP_AM^TimeExpr
  356.  
  357. + ACTIONS AND GOTOS:
  358.  
  359.       _DTP_LONG : shift & new state 12
  360.                 : error
  361.  
  362.        TimeExpr : goto state 34
  363.          Number : goto state 19
  364.  
  365. +-------------------------     STATE 21     -------------------------+
  366.  
  367. + CONFLICTS:
  368.  
  369.  
  370. + RULES:
  371.  
  372.    AMPMTimeExpr :  _DTP_PM^TimeExpr
  373.  
  374. + ACTIONS AND GOTOS:
  375.  
  376.       _DTP_LONG : shift & new state 12
  377.                 : error
  378.  
  379.        TimeExpr : goto state 35
  380.          Number : goto state 19
  381.  
  382. +-------------------------     STATE 22     -------------------------+
  383.  
  384. + CONFLICTS:
  385.  
  386.  
  387. + RULES:
  388.  
  389.           Start :  DateLongExpr EOS^    (rule 5)
  390.  
  391. + ACTIONS AND GOTOS:
  392.  
  393.                 : reduce by rule 5
  394.  
  395.  
  396. +-------------------------     STATE 23     -------------------------+
  397.  
  398. + CONFLICTS:
  399.  
  400.  
  401. + RULES:
  402.  
  403. DateTimeLongExpr :  DateLongExpr TimeExpr^EOS
  404.    AMPMTimeExpr :  TimeExpr^_DTP_AM
  405.    AMPMTimeExpr :  TimeExpr^_DTP_PM
  406.  
  407. + ACTIONS AND GOTOS:
  408.  
  409.        _DTP_EOS : shift & new state 15
  410.         _DTP_AM : shift & new state 30
  411.         _DTP_PM : shift & new state 31
  412.                 : error
  413.  
  414.             EOS : goto state 36
  415.  
  416. +-------------------------     STATE 24     -------------------------+
  417.  
  418. + CONFLICTS:
  419.  
  420.  
  421. + RULES:
  422.  
  423. DateTimeLongExpr :  DateLongExpr AMPMTimeExpr^EOS
  424.  
  425. + ACTIONS AND GOTOS:
  426.  
  427.        _DTP_EOS : shift & new state 15
  428.                 : error
  429.  
  430.             EOS : goto state 37
  431.  
  432. +-------------------------     STATE 25     -------------------------+
  433.  
  434. + CONFLICTS:
  435.  
  436.  
  437. + RULES:
  438.  
  439.           Start :  MonthExpr EOS^    (rule 6)
  440.  
  441. + ACTIONS AND GOTOS:
  442.  
  443.                 : reduce by rule 6
  444.  
  445.  
  446. +-------------------------     STATE 26     -------------------------+
  447.  
  448. + CONFLICTS:
  449.  
  450. ? sft/red (shift & new state 12, rule 12) on _DTP_LONG
  451.  
  452. + RULES:
  453.  
  454.   DateShortExpr :  Number Number^    (rule 12)
  455.   DateShortExpr :  Number Number^Number
  456.  
  457. + ACTIONS AND GOTOS:
  458.  
  459.       _DTP_LONG : shift & new state 12
  460.                 : reduce by rule 12
  461.  
  462.          Number : goto state 38
  463.  
  464. +-------------------------     STATE 27     -------------------------+
  465.  
  466. + CONFLICTS:
  467.  
  468. ? sft/red (shift & new state 12, rule 14) on _DTP_LONG
  469.  
  470. + RULES:
  471.  
  472.    DateLongExpr :  Number AbsMonth^    (rule 14)
  473.    DateLongExpr :  Number AbsMonth^Number
  474.  
  475. + ACTIONS AND GOTOS:
  476.  
  477.       _DTP_LONG : shift & new state 12
  478.                 : reduce by rule 14
  479.  
  480.          Number : goto state 39
  481.  
  482. +-------------------------     STATE 28     -------------------------+
  483.  
  484. + CONFLICTS:
  485.  
  486.  
  487. + RULES:
  488.  
  489.       MonthExpr :  AbsMonth Number^    (rule 25)
  490.  
  491. + ACTIONS AND GOTOS:
  492.  
  493.                 : reduce by rule 25
  494.  
  495.  
  496. +-------------------------     STATE 29     -------------------------+
  497.  
  498. + CONFLICTS:
  499.  
  500.  
  501. + RULES:
  502.  
  503. DateTimeShortExpr :  DateShortExpr TimeExpr EOS^    (rule 7)
  504.  
  505. + ACTIONS AND GOTOS:
  506.  
  507.                 : reduce by rule 7
  508.  
  509.  
  510. +-------------------------     STATE 30     -------------------------+
  511.  
  512. + CONFLICTS:
  513.  
  514.  
  515. + RULES:
  516.  
  517.    AMPMTimeExpr :  TimeExpr _DTP_AM^    (rule 19)
  518.  
  519. + ACTIONS AND GOTOS:
  520.  
  521.                 : reduce by rule 19
  522.  
  523.  
  524. +-------------------------     STATE 31     -------------------------+
  525.  
  526. + CONFLICTS:
  527.  
  528.  
  529. + RULES:
  530.  
  531.    AMPMTimeExpr :  TimeExpr _DTP_PM^    (rule 20)
  532.  
  533. + ACTIONS AND GOTOS:
  534.  
  535.                 : reduce by rule 20
  536.  
  537.  
  538. +-------------------------     STATE 32     -------------------------+
  539.  
  540. + CONFLICTS:
  541.  
  542.  
  543. + RULES:
  544.  
  545. DateTimeShortExpr :  DateShortExpr AMPMTimeExpr EOS^    (rule 8)
  546.  
  547. + ACTIONS AND GOTOS:
  548.  
  549.                 : reduce by rule 8
  550.  
  551.  
  552. +-------------------------     STATE 33     -------------------------+
  553.  
  554. + CONFLICTS:
  555.  
  556.  
  557. + RULES:
  558.  
  559.        TimeExpr :  Number Number^    (rule 17)
  560.        TimeExpr :  Number Number^Number
  561.  
  562. + ACTIONS AND GOTOS:
  563.  
  564.       _DTP_LONG : shift & new state 12
  565.                 : reduce by rule 17
  566.  
  567.          Number : goto state 40
  568.  
  569. +-------------------------     STATE 34     -------------------------+
  570.  
  571. + CONFLICTS:
  572.  
  573.  
  574. + RULES:
  575.  
  576.    AMPMTimeExpr :  _DTP_AM TimeExpr^    (rule 21)
  577.  
  578. + ACTIONS AND GOTOS:
  579.  
  580.                 : reduce by rule 21
  581.  
  582.  
  583. +-------------------------     STATE 35     -------------------------+
  584.  
  585. + CONFLICTS:
  586.  
  587.  
  588. + RULES:
  589.  
  590.    AMPMTimeExpr :  _DTP_PM TimeExpr^    (rule 22)
  591.  
  592. + ACTIONS AND GOTOS:
  593.  
  594.                 : reduce by rule 22
  595.  
  596.  
  597. +-------------------------     STATE 36     -------------------------+
  598.  
  599. + CONFLICTS:
  600.  
  601.  
  602. + RULES:
  603.  
  604. DateTimeLongExpr :  DateLongExpr TimeExpr EOS^    (rule 9)
  605.  
  606. + ACTIONS AND GOTOS:
  607.  
  608.                 : reduce by rule 9
  609.  
  610.  
  611. +-------------------------     STATE 37     -------------------------+
  612.  
  613. + CONFLICTS:
  614.  
  615.  
  616. + RULES:
  617.  
  618. DateTimeLongExpr :  DateLongExpr AMPMTimeExpr EOS^    (rule 10)
  619.  
  620. + ACTIONS AND GOTOS:
  621.  
  622.                 : reduce by rule 10
  623.  
  624.  
  625. +-------------------------     STATE 38     -------------------------+
  626.  
  627. + CONFLICTS:
  628.  
  629.  
  630. + RULES:
  631.  
  632.   DateShortExpr :  Number Number Number^    (rule 13)
  633.  
  634. + ACTIONS AND GOTOS:
  635.  
  636.                 : reduce by rule 13
  637.  
  638.  
  639. +-------------------------     STATE 39     -------------------------+
  640.  
  641. + CONFLICTS:
  642.  
  643.  
  644. + RULES:
  645.  
  646.    DateLongExpr :  Number AbsMonth Number^    (rule 15)
  647.  
  648. + ACTIONS AND GOTOS:
  649.  
  650.                 : reduce by rule 15
  651.  
  652.  
  653. +-------------------------     STATE 40     -------------------------+
  654.  
  655. + CONFLICTS:
  656.  
  657.  
  658. + RULES:
  659.  
  660.        TimeExpr :  Number Number Number^    (rule 18)
  661.  
  662. + ACTIONS AND GOTOS:
  663.  
  664.                 : reduce by rule 18
  665.  
  666.  
  667. ====================      SUMMARY      ====================
  668.  
  669. grammar description file = datetimeparser.y
  670. number of terminals used =     12; limit =   4096
  671. number of nonterminals   =     13; limit =   3072
  672. number of grammar rules  =     30; limit =   4096
  673. number of states         =     41; limit =   8192
  674. number of s/r errors     =      3
  675. number of r/r errors     =      0
  676. number of working set    =     22; limit =   4096
  677. memory for rules & stats =    235; limit = 1024000
  678. memory for actions       =     34; limit = 512000
  679. number of lookahead sets =     12; limit =   8192
  680. number of extra closures =      0
  681. number of shift entries  =     30
  682. number of exception ents =      1
  683. number of goto entries   =     32
  684. number of goto defaults  =      3
  685. optimization input       =    113; limit = 1024000
  686. optimization output      =     51; limit = 512000
  687. number of table entries  =     51; zeros =      5
  688. maximum spread           =    262; offst =    259
  689.  
  690.  
  691. -*-=-*-=-*-=-*-=-*-         END OF TABLE         -*-=-*-=-*-=-*-=-*-
clone this paste RAW Paste Data