NCDValueParser_parse.out 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. State 0:
  2. input ::= * STRING
  3. input ::= * list
  4. list ::= * CURLY_OPEN CURLY_CLOSE
  5. list ::= * CURLY_OPEN list_contents CURLY_CLOSE
  6. STRING shift 4
  7. CURLY_OPEN shift 1
  8. list shift 5
  9. input accept
  10. State 1:
  11. list_contents ::= * STRING
  12. list_contents ::= * list
  13. list_contents ::= * STRING COMMA list_contents
  14. list_contents ::= * list COMMA list_contents
  15. list ::= * CURLY_OPEN CURLY_CLOSE
  16. list ::= CURLY_OPEN * CURLY_CLOSE
  17. list ::= * CURLY_OPEN list_contents CURLY_CLOSE
  18. list ::= CURLY_OPEN * list_contents CURLY_CLOSE
  19. STRING shift 6
  20. CURLY_OPEN shift 1
  21. CURLY_CLOSE shift 11
  22. list_contents shift 8
  23. list shift 7
  24. State 2:
  25. list_contents ::= * STRING
  26. list_contents ::= * list
  27. list_contents ::= * STRING COMMA list_contents
  28. list_contents ::= STRING COMMA * list_contents
  29. list_contents ::= * list COMMA list_contents
  30. list ::= * CURLY_OPEN CURLY_CLOSE
  31. list ::= * CURLY_OPEN list_contents CURLY_CLOSE
  32. STRING shift 6
  33. CURLY_OPEN shift 1
  34. list_contents shift 10
  35. list shift 7
  36. State 3:
  37. list_contents ::= * STRING
  38. list_contents ::= * list
  39. list_contents ::= * STRING COMMA list_contents
  40. list_contents ::= * list COMMA list_contents
  41. list_contents ::= list COMMA * list_contents
  42. list ::= * CURLY_OPEN CURLY_CLOSE
  43. list ::= * CURLY_OPEN list_contents CURLY_CLOSE
  44. STRING shift 6
  45. CURLY_OPEN shift 1
  46. list_contents shift 9
  47. list shift 7
  48. State 4:
  49. (0) input ::= STRING *
  50. $ reduce 0
  51. State 5:
  52. (1) input ::= list *
  53. $ reduce 1
  54. State 6:
  55. (2) list_contents ::= STRING *
  56. list_contents ::= STRING * COMMA list_contents
  57. COMMA shift 2
  58. {default} reduce 2
  59. State 7:
  60. (3) list_contents ::= list *
  61. list_contents ::= list * COMMA list_contents
  62. COMMA shift 3
  63. {default} reduce 3
  64. State 8:
  65. list ::= CURLY_OPEN list_contents * CURLY_CLOSE
  66. CURLY_CLOSE shift 12
  67. State 9:
  68. (5) list_contents ::= list COMMA list_contents *
  69. {default} reduce 5
  70. State 10:
  71. (4) list_contents ::= STRING COMMA list_contents *
  72. {default} reduce 4
  73. State 11:
  74. (6) list ::= CURLY_OPEN CURLY_CLOSE *
  75. {default} reduce 6
  76. State 12:
  77. (7) list ::= CURLY_OPEN list_contents CURLY_CLOSE *
  78. {default} reduce 7
  79. ----------------------------------------------------
  80. Symbols:
  81. 0: $:
  82. 1: STRING
  83. 2: COMMA
  84. 3: CURLY_OPEN
  85. 4: CURLY_CLOSE
  86. 5: error:
  87. 6: list_contents: STRING CURLY_OPEN
  88. 7: list: CURLY_OPEN
  89. 8: input: STRING CURLY_OPEN