calc.output 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  1. Conflict in state 10 between rule 12 and token '|' resolved as reduce.
  2. Conflict in state 10 between rule 12 and token '&' resolved as reduce.
  3. Conflict in state 10 between rule 12 and token '+' resolved as reduce.
  4. Conflict in state 10 between rule 12 and token '-' resolved as reduce.
  5. Conflict in state 10 between rule 12 and token '*' resolved as reduce.
  6. Conflict in state 10 between rule 12 and token '/' resolved as reduce.
  7. Conflict in state 10 between rule 12 and token '%' resolved as reduce.
  8. Conflict in state 22 between rule 10 and token '|' resolved as reduce.
  9. Conflict in state 22 between rule 10 and token '&' resolved as shift.
  10. Conflict in state 22 between rule 10 and token '+' resolved as shift.
  11. Conflict in state 22 between rule 10 and token '-' resolved as shift.
  12. Conflict in state 22 between rule 10 and token '*' resolved as shift.
  13. Conflict in state 22 between rule 10 and token '/' resolved as shift.
  14. Conflict in state 22 between rule 10 and token '%' resolved as shift.
  15. Conflict in state 23 between rule 11 and token '|' resolved as reduce.
  16. Conflict in state 23 between rule 11 and token '&' resolved as reduce.
  17. Conflict in state 23 between rule 11 and token '+' resolved as shift.
  18. Conflict in state 23 between rule 11 and token '-' resolved as shift.
  19. Conflict in state 23 between rule 11 and token '*' resolved as shift.
  20. Conflict in state 23 between rule 11 and token '/' resolved as shift.
  21. Conflict in state 23 between rule 11 and token '%' resolved as shift.
  22. Conflict in state 24 between rule 5 and token '|' resolved as reduce.
  23. Conflict in state 24 between rule 5 and token '&' resolved as reduce.
  24. Conflict in state 24 between rule 5 and token '+' resolved as reduce.
  25. Conflict in state 24 between rule 5 and token '-' resolved as reduce.
  26. Conflict in state 24 between rule 5 and token '*' resolved as shift.
  27. Conflict in state 24 between rule 5 and token '/' resolved as shift.
  28. Conflict in state 24 between rule 5 and token '%' resolved as shift.
  29. Conflict in state 25 between rule 6 and token '|' resolved as reduce.
  30. Conflict in state 25 between rule 6 and token '&' resolved as reduce.
  31. Conflict in state 25 between rule 6 and token '+' resolved as reduce.
  32. Conflict in state 25 between rule 6 and token '-' resolved as reduce.
  33. Conflict in state 25 between rule 6 and token '*' resolved as shift.
  34. Conflict in state 25 between rule 6 and token '/' resolved as shift.
  35. Conflict in state 25 between rule 6 and token '%' resolved as shift.
  36. Conflict in state 26 between rule 7 and token '|' resolved as reduce.
  37. Conflict in state 26 between rule 7 and token '&' resolved as reduce.
  38. Conflict in state 26 between rule 7 and token '+' resolved as reduce.
  39. Conflict in state 26 between rule 7 and token '-' resolved as reduce.
  40. Conflict in state 26 between rule 7 and token '*' resolved as reduce.
  41. Conflict in state 26 between rule 7 and token '/' resolved as reduce.
  42. Conflict in state 26 between rule 7 and token '%' resolved as reduce.
  43. Conflict in state 27 between rule 8 and token '|' resolved as reduce.
  44. Conflict in state 27 between rule 8 and token '&' resolved as reduce.
  45. Conflict in state 27 between rule 8 and token '+' resolved as reduce.
  46. Conflict in state 27 between rule 8 and token '-' resolved as reduce.
  47. Conflict in state 27 between rule 8 and token '*' resolved as reduce.
  48. Conflict in state 27 between rule 8 and token '/' resolved as reduce.
  49. Conflict in state 27 between rule 8 and token '%' resolved as reduce.
  50. Conflict in state 28 between rule 9 and token '|' resolved as reduce.
  51. Conflict in state 28 between rule 9 and token '&' resolved as reduce.
  52. Conflict in state 28 between rule 9 and token '+' resolved as reduce.
  53. Conflict in state 28 between rule 9 and token '-' resolved as reduce.
  54. Conflict in state 28 between rule 9 and token '*' resolved as reduce.
  55. Conflict in state 28 between rule 9 and token '/' resolved as reduce.
  56. Conflict in state 28 between rule 9 and token '%' resolved as reduce.
  57. token types:
  58. type -1 is $
  59. type 37 is '%'
  60. type 38 is '&'
  61. type 40 is '('
  62. type 41 is ')'
  63. type 42 is '*'
  64. type 43 is '+'
  65. type 45 is '-'
  66. type 47 is '/'
  67. type 61 is '='
  68. type 124 is '|'
  69. type 256 is error
  70. type 258 is DIGIT
  71. type 259 is LETTER
  72. type 260 is EXIT
  73. type 261 is UMINUS
  74. state 0
  75. DIGIT shift 1
  76. LETTER shift 2
  77. EXIT shift 3
  78. '-' shift 4
  79. '(' shift 5
  80. expr shift 6
  81. stmt shift 29
  82. number shift 7
  83. state 1
  84. number -> DIGIT . (15)
  85. $default reduce 15 (number)
  86. state 2
  87. stmt -> LETTER . '=' expr (2)
  88. expr -> LETTER . (13)
  89. '=' shift 8
  90. $default reduce 13 (expr)
  91. state 3
  92. stmt -> EXIT . (3)
  93. $default reduce 3 (stmt)
  94. state 4
  95. expr -> '-' . expr (12)
  96. DIGIT shift 1
  97. LETTER shift 9
  98. '-' shift 4
  99. '(' shift 5
  100. expr shift 10
  101. number shift 7
  102. state 5
  103. expr -> '(' . expr ')' (4)
  104. DIGIT shift 1
  105. LETTER shift 9
  106. '-' shift 4
  107. '(' shift 5
  108. expr shift 11
  109. number shift 7
  110. state 6
  111. stmt -> expr . (1)
  112. expr -> expr . '+' expr (5)
  113. expr -> expr . '-' expr (6)
  114. expr -> expr . '*' expr (7)
  115. expr -> expr . '/' expr (8)
  116. expr -> expr . '%' expr (9)
  117. expr -> expr . '|' expr (10)
  118. expr -> expr . '&' expr (11)
  119. '|' shift 12
  120. '&' shift 13
  121. '+' shift 14
  122. '-' shift 15
  123. '*' shift 16
  124. '/' shift 17
  125. '%' shift 18
  126. $default reduce 1 (stmt)
  127. state 7
  128. expr -> number . (14)
  129. number -> number . DIGIT (16)
  130. DIGIT shift 19
  131. $default reduce 14 (expr)
  132. state 8
  133. stmt -> LETTER '=' . expr (2)
  134. DIGIT shift 1
  135. LETTER shift 9
  136. '-' shift 4
  137. '(' shift 5
  138. expr shift 20
  139. number shift 7
  140. state 9
  141. expr -> LETTER . (13)
  142. $default reduce 13 (expr)
  143. state 10
  144. expr -> expr . '+' expr (5)
  145. expr -> expr . '-' expr (6)
  146. expr -> expr . '*' expr (7)
  147. expr -> expr . '/' expr (8)
  148. expr -> expr . '%' expr (9)
  149. expr -> expr . '|' expr (10)
  150. expr -> expr . '&' expr (11)
  151. expr -> '-' expr . (12)
  152. $default reduce 12 (expr)
  153. state 11
  154. expr -> '(' expr . ')' (4)
  155. expr -> expr . '+' expr (5)
  156. expr -> expr . '-' expr (6)
  157. expr -> expr . '*' expr (7)
  158. expr -> expr . '/' expr (8)
  159. expr -> expr . '%' expr (9)
  160. expr -> expr . '|' expr (10)
  161. expr -> expr . '&' expr (11)
  162. '|' shift 12
  163. '&' shift 13
  164. '+' shift 14
  165. '-' shift 15
  166. '*' shift 16
  167. '/' shift 17
  168. '%' shift 18
  169. ')' shift 21
  170. state 12
  171. expr -> expr '|' . expr (10)
  172. DIGIT shift 1
  173. LETTER shift 9
  174. '-' shift 4
  175. '(' shift 5
  176. expr shift 22
  177. number shift 7
  178. state 13
  179. expr -> expr '&' . expr (11)
  180. DIGIT shift 1
  181. LETTER shift 9
  182. '-' shift 4
  183. '(' shift 5
  184. expr shift 23
  185. number shift 7
  186. state 14
  187. expr -> expr '+' . expr (5)
  188. DIGIT shift 1
  189. LETTER shift 9
  190. '-' shift 4
  191. '(' shift 5
  192. expr shift 24
  193. number shift 7
  194. state 15
  195. expr -> expr '-' . expr (6)
  196. DIGIT shift 1
  197. LETTER shift 9
  198. '-' shift 4
  199. '(' shift 5
  200. expr shift 25
  201. number shift 7
  202. state 16
  203. expr -> expr '*' . expr (7)
  204. DIGIT shift 1
  205. LETTER shift 9
  206. '-' shift 4
  207. '(' shift 5
  208. expr shift 26
  209. number shift 7
  210. state 17
  211. expr -> expr '/' . expr (8)
  212. DIGIT shift 1
  213. LETTER shift 9
  214. '-' shift 4
  215. '(' shift 5
  216. expr shift 27
  217. number shift 7
  218. state 18
  219. expr -> expr '%' . expr (9)
  220. DIGIT shift 1
  221. LETTER shift 9
  222. '-' shift 4
  223. '(' shift 5
  224. expr shift 28
  225. number shift 7
  226. state 19
  227. number -> number DIGIT . (16)
  228. $default reduce 16 (number)
  229. state 20
  230. stmt -> LETTER '=' expr . (2)
  231. expr -> expr . '+' expr (5)
  232. expr -> expr . '-' expr (6)
  233. expr -> expr . '*' expr (7)
  234. expr -> expr . '/' expr (8)
  235. expr -> expr . '%' expr (9)
  236. expr -> expr . '|' expr (10)
  237. expr -> expr . '&' expr (11)
  238. '|' shift 12
  239. '&' shift 13
  240. '+' shift 14
  241. '-' shift 15
  242. '*' shift 16
  243. '/' shift 17
  244. '%' shift 18
  245. $default reduce 2 (stmt)
  246. state 21
  247. expr -> '(' expr ')' . (4)
  248. $default reduce 4 (expr)
  249. state 22
  250. expr -> expr . '+' expr (5)
  251. expr -> expr . '-' expr (6)
  252. expr -> expr . '*' expr (7)
  253. expr -> expr . '/' expr (8)
  254. expr -> expr . '%' expr (9)
  255. expr -> expr . '|' expr (10)
  256. expr -> expr '|' expr . (10)
  257. expr -> expr . '&' expr (11)
  258. '&' shift 13
  259. '+' shift 14
  260. '-' shift 15
  261. '*' shift 16
  262. '/' shift 17
  263. '%' shift 18
  264. $default reduce 10 (expr)
  265. state 23
  266. expr -> expr . '+' expr (5)
  267. expr -> expr . '-' expr (6)
  268. expr -> expr . '*' expr (7)
  269. expr -> expr . '/' expr (8)
  270. expr -> expr . '%' expr (9)
  271. expr -> expr . '|' expr (10)
  272. expr -> expr . '&' expr (11)
  273. expr -> expr '&' expr . (11)
  274. '+' shift 14
  275. '-' shift 15
  276. '*' shift 16
  277. '/' shift 17
  278. '%' shift 18
  279. $default reduce 11 (expr)
  280. state 24
  281. expr -> expr . '+' expr (5)
  282. expr -> expr '+' expr . (5)
  283. expr -> expr . '-' expr (6)
  284. expr -> expr . '*' expr (7)
  285. expr -> expr . '/' expr (8)
  286. expr -> expr . '%' expr (9)
  287. expr -> expr . '|' expr (10)
  288. expr -> expr . '&' expr (11)
  289. '*' shift 16
  290. '/' shift 17
  291. '%' shift 18
  292. $default reduce 5 (expr)
  293. state 25
  294. expr -> expr . '+' expr (5)
  295. expr -> expr . '-' expr (6)
  296. expr -> expr '-' expr . (6)
  297. expr -> expr . '*' expr (7)
  298. expr -> expr . '/' expr (8)
  299. expr -> expr . '%' expr (9)
  300. expr -> expr . '|' expr (10)
  301. expr -> expr . '&' expr (11)
  302. '*' shift 16
  303. '/' shift 17
  304. '%' shift 18
  305. $default reduce 6 (expr)
  306. state 26
  307. expr -> expr . '+' expr (5)
  308. expr -> expr . '-' expr (6)
  309. expr -> expr . '*' expr (7)
  310. expr -> expr '*' expr . (7)
  311. expr -> expr . '/' expr (8)
  312. expr -> expr . '%' expr (9)
  313. expr -> expr . '|' expr (10)
  314. expr -> expr . '&' expr (11)
  315. $default reduce 7 (expr)
  316. state 27
  317. expr -> expr . '+' expr (5)
  318. expr -> expr . '-' expr (6)
  319. expr -> expr . '*' expr (7)
  320. expr -> expr . '/' expr (8)
  321. expr -> expr '/' expr . (8)
  322. expr -> expr . '%' expr (9)
  323. expr -> expr . '|' expr (10)
  324. expr -> expr . '&' expr (11)
  325. $default reduce 8 (expr)
  326. state 28
  327. expr -> expr . '+' expr (5)
  328. expr -> expr . '-' expr (6)
  329. expr -> expr . '*' expr (7)
  330. expr -> expr . '/' expr (8)
  331. expr -> expr . '%' expr (9)
  332. expr -> expr '%' expr . (9)
  333. expr -> expr . '|' expr (10)
  334. expr -> expr . '&' expr (11)
  335. $default reduce 9 (expr)
  336. state 29
  337. $ shift 30
  338. state 30
  339. $ shift 31
  340. state 31
  341. NO ACTIONS