You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

scenesetup-parser.output 15 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  1. Nonterminals useless in grammar
  2. iv3
  3. bv
  4. Terminals unused in grammar
  5. T_COLOR
  6. T_ERROR
  7. BOOLEAN
  8. Rules useless in grammar
  9. 34 iv3: '(' iv ')'
  10. 35 | '(' iv iv iv ')'
  11. 36 bv: BOOLEAN
  12. 37 | I_NUMBER
  13. 38 | F_NUMBER
  14. Rules useless in parser due to conflicts
  15. 23 iv: I_NUMBER
  16. 24 | '-' iv
  17. 25 | F_NUMBER
  18. 26 | '-' fv
  19. State 10 conflicts: 6 shift/reduce
  20. State 33 conflicts: 11 reduce/reduce
  21. State 34 conflicts: 11 reduce/reduce
  22. State 42 conflicts: 11 reduce/reduce
  23. State 43 conflicts: 11 reduce/reduce
  24. Grammar
  25. 0 $accept: sstp_description T_END
  26. 1 sstp_description: sstp_expression_list T_END
  27. 2 sstp_expression_list: sstp_expression
  28. 3 | sstp_expression sstp_expression_list
  29. 4 sstp_expression: sstp_command_list
  30. 5 sstp_command_list: sstp_command
  31. 6 | sstp_command_list sstp_command
  32. 7 sstp_command: light_command
  33. 8 | setup_command
  34. 9 | custom_command
  35. 10 light_command: T_ADDLIGHT
  36. 11 | T_ADDLIGHT fv
  37. 12 setup_command: T_OBJPOSITION v3
  38. 13 | T_OBJLOOKAT v3
  39. 14 | T_OBJCOLOR v4
  40. 15 | T_OBJCOLOR COLOR
  41. 16 | T_CLEARCOLOR v4
  42. 17 | T_CLEARCOLOR COLOR
  43. 18 custom_command: T_CUSTOMCMD svv sv
  44. 19 fv: F_NUMBER
  45. 20 | '-' fv
  46. 21 | I_NUMBER
  47. 22 | '-' iv
  48. 23 iv: I_NUMBER
  49. 24 | '-' iv
  50. 25 | F_NUMBER
  51. 26 | '-' fv
  52. 27 v3: '(' fv ')'
  53. 28 | '(' fv fv fv ')'
  54. 29 v4: '(' fv ')'
  55. 30 | '(' fv fv fv fv ')'
  56. 31 svv: STRING_VAR
  57. 32 sv: STRING
  58. 33 | STRING sv
  59. Terminals, with rules where they appear
  60. T_END (0) 0 1
  61. '(' (40) 27 28 29 30
  62. ')' (41) 27 28 29 30
  63. '-' (45) 20 22 24 26
  64. error (256)
  65. T_COLOR (258)
  66. T_ADDLIGHT (259) 10 11
  67. T_OBJPOSITION (260) 12
  68. T_OBJLOOKAT (261) 13
  69. T_OBJCOLOR (262) 14 15
  70. T_CLEARCOLOR (263) 16 17
  71. T_CUSTOMCMD (264) 18
  72. T_ERROR (265)
  73. F_NUMBER (266) 19 25
  74. I_NUMBER (267) 21 23
  75. STRING (268) 32 33
  76. STRING_VAR (269) 31
  77. BOOLEAN (270)
  78. COLOR (271) 15 17
  79. Nonterminals, with rules where they appear
  80. $accept (20)
  81. on left: 0
  82. sstp_description (21)
  83. on left: 1, on right: 0
  84. sstp_expression_list (22)
  85. on left: 2 3, on right: 1 3
  86. sstp_expression (23)
  87. on left: 4, on right: 2 3
  88. sstp_command_list (24)
  89. on left: 5 6, on right: 4 6
  90. sstp_command (25)
  91. on left: 7 8 9, on right: 5 6
  92. light_command (26)
  93. on left: 10 11, on right: 7
  94. setup_command (27)
  95. on left: 12 13 14 15 16 17, on right: 8
  96. custom_command (28)
  97. on left: 18, on right: 9
  98. fv (29)
  99. on left: 19 20 21 22, on right: 11 20 26 27 28 29 30
  100. iv (30)
  101. on left: 23 24 25 26, on right: 22 24
  102. v3 (31)
  103. on left: 27 28, on right: 12 13
  104. v4 (32)
  105. on left: 29 30, on right: 14 16
  106. svv (33)
  107. on left: 31, on right: 18
  108. sv (34)
  109. on left: 32 33, on right: 18 33
  110. state 0
  111. 0 $accept: . sstp_description T_END
  112. T_ADDLIGHT shift, and go to state 1
  113. T_OBJPOSITION shift, and go to state 2
  114. T_OBJLOOKAT shift, and go to state 3
  115. T_OBJCOLOR shift, and go to state 4
  116. T_CLEARCOLOR shift, and go to state 5
  117. T_CUSTOMCMD shift, and go to state 6
  118. sstp_description go to state 7
  119. sstp_expression_list go to state 8
  120. sstp_expression go to state 9
  121. sstp_command_list go to state 10
  122. sstp_command go to state 11
  123. light_command go to state 12
  124. setup_command go to state 13
  125. custom_command go to state 14
  126. state 1
  127. 10 light_command: T_ADDLIGHT .
  128. 11 | T_ADDLIGHT . fv
  129. F_NUMBER shift, and go to state 15
  130. I_NUMBER shift, and go to state 16
  131. '-' shift, and go to state 17
  132. $default reduce using rule 10 (light_command)
  133. fv go to state 18
  134. state 2
  135. 12 setup_command: T_OBJPOSITION . v3
  136. '(' shift, and go to state 19
  137. v3 go to state 20
  138. state 3
  139. 13 setup_command: T_OBJLOOKAT . v3
  140. '(' shift, and go to state 19
  141. v3 go to state 21
  142. state 4
  143. 14 setup_command: T_OBJCOLOR . v4
  144. 15 | T_OBJCOLOR . COLOR
  145. COLOR shift, and go to state 22
  146. '(' shift, and go to state 23
  147. v4 go to state 24
  148. state 5
  149. 16 setup_command: T_CLEARCOLOR . v4
  150. 17 | T_CLEARCOLOR . COLOR
  151. COLOR shift, and go to state 25
  152. '(' shift, and go to state 23
  153. v4 go to state 26
  154. state 6
  155. 18 custom_command: T_CUSTOMCMD . svv sv
  156. STRING_VAR shift, and go to state 27
  157. svv go to state 28
  158. state 7
  159. 0 $accept: sstp_description . T_END
  160. T_END shift, and go to state 29
  161. state 8
  162. 1 sstp_description: sstp_expression_list . T_END
  163. T_END shift, and go to state 30
  164. state 9
  165. 2 sstp_expression_list: sstp_expression .
  166. 3 | sstp_expression . sstp_expression_list
  167. T_ADDLIGHT shift, and go to state 1
  168. T_OBJPOSITION shift, and go to state 2
  169. T_OBJLOOKAT shift, and go to state 3
  170. T_OBJCOLOR shift, and go to state 4
  171. T_CLEARCOLOR shift, and go to state 5
  172. T_CUSTOMCMD shift, and go to state 6
  173. $default reduce using rule 2 (sstp_expression_list)
  174. sstp_expression_list go to state 31
  175. sstp_expression go to state 9
  176. sstp_command_list go to state 10
  177. sstp_command go to state 11
  178. light_command go to state 12
  179. setup_command go to state 13
  180. custom_command go to state 14
  181. state 10
  182. 4 sstp_expression: sstp_command_list .
  183. 6 sstp_command_list: sstp_command_list . sstp_command
  184. T_ADDLIGHT shift, and go to state 1
  185. T_OBJPOSITION shift, and go to state 2
  186. T_OBJLOOKAT shift, and go to state 3
  187. T_OBJCOLOR shift, and go to state 4
  188. T_CLEARCOLOR shift, and go to state 5
  189. T_CUSTOMCMD shift, and go to state 6
  190. T_ADDLIGHT [reduce using rule 4 (sstp_expression)]
  191. T_OBJPOSITION [reduce using rule 4 (sstp_expression)]
  192. T_OBJLOOKAT [reduce using rule 4 (sstp_expression)]
  193. T_OBJCOLOR [reduce using rule 4 (sstp_expression)]
  194. T_CLEARCOLOR [reduce using rule 4 (sstp_expression)]
  195. T_CUSTOMCMD [reduce using rule 4 (sstp_expression)]
  196. $default reduce using rule 4 (sstp_expression)
  197. sstp_command go to state 32
  198. light_command go to state 12
  199. setup_command go to state 13
  200. custom_command go to state 14
  201. state 11
  202. 5 sstp_command_list: sstp_command .
  203. $default reduce using rule 5 (sstp_command_list)
  204. state 12
  205. 7 sstp_command: light_command .
  206. $default reduce using rule 7 (sstp_command)
  207. state 13
  208. 8 sstp_command: setup_command .
  209. $default reduce using rule 8 (sstp_command)
  210. state 14
  211. 9 sstp_command: custom_command .
  212. $default reduce using rule 9 (sstp_command)
  213. state 15
  214. 19 fv: F_NUMBER .
  215. $default reduce using rule 19 (fv)
  216. state 16
  217. 21 fv: I_NUMBER .
  218. $default reduce using rule 21 (fv)
  219. state 17
  220. 20 fv: '-' . fv
  221. 22 | '-' . iv
  222. F_NUMBER shift, and go to state 33
  223. I_NUMBER shift, and go to state 34
  224. '-' shift, and go to state 35
  225. fv go to state 36
  226. iv go to state 37
  227. state 18
  228. 11 light_command: T_ADDLIGHT fv .
  229. $default reduce using rule 11 (light_command)
  230. state 19
  231. 27 v3: '(' . fv ')'
  232. 28 | '(' . fv fv fv ')'
  233. F_NUMBER shift, and go to state 15
  234. I_NUMBER shift, and go to state 16
  235. '-' shift, and go to state 17
  236. fv go to state 38
  237. state 20
  238. 12 setup_command: T_OBJPOSITION v3 .
  239. $default reduce using rule 12 (setup_command)
  240. state 21
  241. 13 setup_command: T_OBJLOOKAT v3 .
  242. $default reduce using rule 13 (setup_command)
  243. state 22
  244. 15 setup_command: T_OBJCOLOR COLOR .
  245. $default reduce using rule 15 (setup_command)
  246. state 23
  247. 29 v4: '(' . fv ')'
  248. 30 | '(' . fv fv fv fv ')'
  249. F_NUMBER shift, and go to state 15
  250. I_NUMBER shift, and go to state 16
  251. '-' shift, and go to state 17
  252. fv go to state 39
  253. state 24
  254. 14 setup_command: T_OBJCOLOR v4 .
  255. $default reduce using rule 14 (setup_command)
  256. state 25
  257. 17 setup_command: T_CLEARCOLOR COLOR .
  258. $default reduce using rule 17 (setup_command)
  259. state 26
  260. 16 setup_command: T_CLEARCOLOR v4 .
  261. $default reduce using rule 16 (setup_command)
  262. state 27
  263. 31 svv: STRING_VAR .
  264. $default reduce using rule 31 (svv)
  265. state 28
  266. 18 custom_command: T_CUSTOMCMD svv . sv
  267. STRING shift, and go to state 40
  268. sv go to state 41
  269. state 29
  270. 0 $accept: sstp_description T_END .
  271. $default accept
  272. state 30
  273. 1 sstp_description: sstp_expression_list T_END .
  274. $default reduce using rule 1 (sstp_description)
  275. state 31
  276. 3 sstp_expression_list: sstp_expression sstp_expression_list .
  277. $default reduce using rule 3 (sstp_expression_list)
  278. state 32
  279. 6 sstp_command_list: sstp_command_list sstp_command .
  280. $default reduce using rule 6 (sstp_command_list)
  281. state 33
  282. 19 fv: F_NUMBER .
  283. 25 iv: F_NUMBER .
  284. T_END reduce using rule 19 (fv)
  285. T_END [reduce using rule 25 (iv)]
  286. T_ADDLIGHT reduce using rule 19 (fv)
  287. T_ADDLIGHT [reduce using rule 25 (iv)]
  288. T_OBJPOSITION reduce using rule 19 (fv)
  289. T_OBJPOSITION [reduce using rule 25 (iv)]
  290. T_OBJLOOKAT reduce using rule 19 (fv)
  291. T_OBJLOOKAT [reduce using rule 25 (iv)]
  292. T_OBJCOLOR reduce using rule 19 (fv)
  293. T_OBJCOLOR [reduce using rule 25 (iv)]
  294. T_CLEARCOLOR reduce using rule 19 (fv)
  295. T_CLEARCOLOR [reduce using rule 25 (iv)]
  296. T_CUSTOMCMD reduce using rule 19 (fv)
  297. T_CUSTOMCMD [reduce using rule 25 (iv)]
  298. F_NUMBER reduce using rule 19 (fv)
  299. F_NUMBER [reduce using rule 25 (iv)]
  300. I_NUMBER reduce using rule 19 (fv)
  301. I_NUMBER [reduce using rule 25 (iv)]
  302. '-' reduce using rule 19 (fv)
  303. '-' [reduce using rule 25 (iv)]
  304. ')' reduce using rule 19 (fv)
  305. ')' [reduce using rule 25 (iv)]
  306. $default reduce using rule 19 (fv)
  307. state 34
  308. 21 fv: I_NUMBER .
  309. 23 iv: I_NUMBER .
  310. T_END reduce using rule 21 (fv)
  311. T_END [reduce using rule 23 (iv)]
  312. T_ADDLIGHT reduce using rule 21 (fv)
  313. T_ADDLIGHT [reduce using rule 23 (iv)]
  314. T_OBJPOSITION reduce using rule 21 (fv)
  315. T_OBJPOSITION [reduce using rule 23 (iv)]
  316. T_OBJLOOKAT reduce using rule 21 (fv)
  317. T_OBJLOOKAT [reduce using rule 23 (iv)]
  318. T_OBJCOLOR reduce using rule 21 (fv)
  319. T_OBJCOLOR [reduce using rule 23 (iv)]
  320. T_CLEARCOLOR reduce using rule 21 (fv)
  321. T_CLEARCOLOR [reduce using rule 23 (iv)]
  322. T_CUSTOMCMD reduce using rule 21 (fv)
  323. T_CUSTOMCMD [reduce using rule 23 (iv)]
  324. F_NUMBER reduce using rule 21 (fv)
  325. F_NUMBER [reduce using rule 23 (iv)]
  326. I_NUMBER reduce using rule 21 (fv)
  327. I_NUMBER [reduce using rule 23 (iv)]
  328. '-' reduce using rule 21 (fv)
  329. '-' [reduce using rule 23 (iv)]
  330. ')' reduce using rule 21 (fv)
  331. ')' [reduce using rule 23 (iv)]
  332. $default reduce using rule 21 (fv)
  333. state 35
  334. 20 fv: '-' . fv
  335. 22 | '-' . iv
  336. 24 iv: '-' . iv
  337. 26 | '-' . fv
  338. F_NUMBER shift, and go to state 33
  339. I_NUMBER shift, and go to state 34
  340. '-' shift, and go to state 35
  341. fv go to state 42
  342. iv go to state 43
  343. state 36
  344. 20 fv: '-' fv .
  345. $default reduce using rule 20 (fv)
  346. state 37
  347. 22 fv: '-' iv .
  348. $default reduce using rule 22 (fv)
  349. state 38
  350. 27 v3: '(' fv . ')'
  351. 28 | '(' fv . fv fv ')'
  352. F_NUMBER shift, and go to state 15
  353. I_NUMBER shift, and go to state 16
  354. '-' shift, and go to state 17
  355. ')' shift, and go to state 44
  356. fv go to state 45
  357. state 39
  358. 29 v4: '(' fv . ')'
  359. 30 | '(' fv . fv fv fv ')'
  360. F_NUMBER shift, and go to state 15
  361. I_NUMBER shift, and go to state 16
  362. '-' shift, and go to state 17
  363. ')' shift, and go to state 46
  364. fv go to state 47
  365. state 40
  366. 32 sv: STRING .
  367. 33 | STRING . sv
  368. STRING shift, and go to state 40
  369. $default reduce using rule 32 (sv)
  370. sv go to state 48
  371. state 41
  372. 18 custom_command: T_CUSTOMCMD svv sv .
  373. $default reduce using rule 18 (custom_command)
  374. state 42
  375. 20 fv: '-' fv .
  376. 26 iv: '-' fv .
  377. T_END reduce using rule 20 (fv)
  378. T_END [reduce using rule 26 (iv)]
  379. T_ADDLIGHT reduce using rule 20 (fv)
  380. T_ADDLIGHT [reduce using rule 26 (iv)]
  381. T_OBJPOSITION reduce using rule 20 (fv)
  382. T_OBJPOSITION [reduce using rule 26 (iv)]
  383. T_OBJLOOKAT reduce using rule 20 (fv)
  384. T_OBJLOOKAT [reduce using rule 26 (iv)]
  385. T_OBJCOLOR reduce using rule 20 (fv)
  386. T_OBJCOLOR [reduce using rule 26 (iv)]
  387. T_CLEARCOLOR reduce using rule 20 (fv)
  388. T_CLEARCOLOR [reduce using rule 26 (iv)]
  389. T_CUSTOMCMD reduce using rule 20 (fv)
  390. T_CUSTOMCMD [reduce using rule 26 (iv)]
  391. F_NUMBER reduce using rule 20 (fv)
  392. F_NUMBER [reduce using rule 26 (iv)]
  393. I_NUMBER reduce using rule 20 (fv)
  394. I_NUMBER [reduce using rule 26 (iv)]
  395. '-' reduce using rule 20 (fv)
  396. '-' [reduce using rule 26 (iv)]
  397. ')' reduce using rule 20 (fv)
  398. ')' [reduce using rule 26 (iv)]
  399. $default reduce using rule 20 (fv)
  400. state 43
  401. 22 fv: '-' iv .
  402. 24 iv: '-' iv .
  403. T_END reduce using rule 22 (fv)
  404. T_END [reduce using rule 24 (iv)]
  405. T_ADDLIGHT reduce using rule 22 (fv)
  406. T_ADDLIGHT [reduce using rule 24 (iv)]
  407. T_OBJPOSITION reduce using rule 22 (fv)
  408. T_OBJPOSITION [reduce using rule 24 (iv)]
  409. T_OBJLOOKAT reduce using rule 22 (fv)
  410. T_OBJLOOKAT [reduce using rule 24 (iv)]
  411. T_OBJCOLOR reduce using rule 22 (fv)
  412. T_OBJCOLOR [reduce using rule 24 (iv)]
  413. T_CLEARCOLOR reduce using rule 22 (fv)
  414. T_CLEARCOLOR [reduce using rule 24 (iv)]
  415. T_CUSTOMCMD reduce using rule 22 (fv)
  416. T_CUSTOMCMD [reduce using rule 24 (iv)]
  417. F_NUMBER reduce using rule 22 (fv)
  418. F_NUMBER [reduce using rule 24 (iv)]
  419. I_NUMBER reduce using rule 22 (fv)
  420. I_NUMBER [reduce using rule 24 (iv)]
  421. '-' reduce using rule 22 (fv)
  422. '-' [reduce using rule 24 (iv)]
  423. ')' reduce using rule 22 (fv)
  424. ')' [reduce using rule 24 (iv)]
  425. $default reduce using rule 22 (fv)
  426. state 44
  427. 27 v3: '(' fv ')' .
  428. $default reduce using rule 27 (v3)
  429. state 45
  430. 28 v3: '(' fv fv . fv ')'
  431. F_NUMBER shift, and go to state 15
  432. I_NUMBER shift, and go to state 16
  433. '-' shift, and go to state 17
  434. fv go to state 49
  435. state 46
  436. 29 v4: '(' fv ')' .
  437. $default reduce using rule 29 (v4)
  438. state 47
  439. 30 v4: '(' fv fv . fv fv ')'
  440. F_NUMBER shift, and go to state 15
  441. I_NUMBER shift, and go to state 16
  442. '-' shift, and go to state 17
  443. fv go to state 50
  444. state 48
  445. 33 sv: STRING sv .
  446. $default reduce using rule 33 (sv)
  447. state 49
  448. 28 v3: '(' fv fv fv . ')'
  449. ')' shift, and go to state 51
  450. state 50
  451. 30 v4: '(' fv fv fv . fv ')'
  452. F_NUMBER shift, and go to state 15
  453. I_NUMBER shift, and go to state 16
  454. '-' shift, and go to state 17
  455. fv go to state 52
  456. state 51
  457. 28 v3: '(' fv fv fv ')' .
  458. $default reduce using rule 28 (v3)
  459. state 52
  460. 30 v4: '(' fv fv fv fv . ')'
  461. ')' shift, and go to state 53
  462. state 53
  463. 30 v4: '(' fv fv fv fv ')' .
  464. $default reduce using rule 30 (v4)