cybrid_api_bank_ruby 0.116.6 → 0.116.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (342) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +5 -5
  4. data/cybrid_api_bank_ruby.gemspec +1 -1
  5. data/lib/cybrid_api_bank_ruby/api/accounts_bank_api.rb +1 -1
  6. data/lib/cybrid_api_bank_ruby/api/assets_bank_api.rb +1 -1
  7. data/lib/cybrid_api_bank_ruby/api/banks_bank_api.rb +1 -1
  8. data/lib/cybrid_api_bank_ruby/api/counterparties_bank_api.rb +1 -1
  9. data/lib/cybrid_api_bank_ruby/api/customers_bank_api.rb +1 -1
  10. data/lib/cybrid_api_bank_ruby/api/deposit_addresses_bank_api.rb +1 -1
  11. data/lib/cybrid_api_bank_ruby/api/deposit_bank_accounts_bank_api.rb +1 -1
  12. data/lib/cybrid_api_bank_ruby/api/external_bank_accounts_bank_api.rb +1 -1
  13. data/lib/cybrid_api_bank_ruby/api/external_wallets_bank_api.rb +1 -1
  14. data/lib/cybrid_api_bank_ruby/api/identity_verifications_bank_api.rb +1 -1
  15. data/lib/cybrid_api_bank_ruby/api/invoices_bank_api.rb +1 -1
  16. data/lib/cybrid_api_bank_ruby/api/payment_instructions_bank_api.rb +1 -1
  17. data/lib/cybrid_api_bank_ruby/api/prices_bank_api.rb +1 -1
  18. data/lib/cybrid_api_bank_ruby/api/quotes_bank_api.rb +1 -1
  19. data/lib/cybrid_api_bank_ruby/api/symbols_bank_api.rb +1 -1
  20. data/lib/cybrid_api_bank_ruby/api/trades_bank_api.rb +1 -1
  21. data/lib/cybrid_api_bank_ruby/api/transfers_bank_api.rb +1 -1
  22. data/lib/cybrid_api_bank_ruby/api/workflows_bank_api.rb +1 -1
  23. data/lib/cybrid_api_bank_ruby/api_client.rb +1 -1
  24. data/lib/cybrid_api_bank_ruby/api_error.rb +1 -1
  25. data/lib/cybrid_api_bank_ruby/configuration.rb +1 -1
  26. data/lib/cybrid_api_bank_ruby/models/account_bank_model.rb +1 -1
  27. data/lib/cybrid_api_bank_ruby/models/account_list_bank_model.rb +1 -1
  28. data/lib/cybrid_api_bank_ruby/models/account_state_bank_model.rb +1 -1
  29. data/lib/cybrid_api_bank_ruby/models/account_type_bank_model.rb +1 -1
  30. data/lib/cybrid_api_bank_ruby/models/asset_bank_model.rb +1 -1
  31. data/lib/cybrid_api_bank_ruby/models/asset_list_bank_model.rb +1 -1
  32. data/lib/cybrid_api_bank_ruby/models/asset_types_bank_model.rb +1 -1
  33. data/lib/cybrid_api_bank_ruby/models/bank_bank_model.rb +1 -1
  34. data/lib/cybrid_api_bank_ruby/models/bank_feature_bank_model.rb +1 -1
  35. data/lib/cybrid_api_bank_ruby/models/bank_list_bank_model.rb +1 -1
  36. data/lib/cybrid_api_bank_ruby/models/bank_type_bank_model.rb +1 -1
  37. data/lib/cybrid_api_bank_ruby/models/compliance_check_bank_model.rb +1 -1
  38. data/lib/cybrid_api_bank_ruby/models/compliance_check_outcome_bank_model.rb +1 -1
  39. data/lib/cybrid_api_bank_ruby/models/compliance_check_type_bank_model.rb +1 -1
  40. data/lib/cybrid_api_bank_ruby/models/compliance_decision_bank_model.rb +1 -1
  41. data/lib/cybrid_api_bank_ruby/models/compliance_decision_state_bank_model.rb +1 -1
  42. data/lib/cybrid_api_bank_ruby/models/compliance_decision_type_bank_model.rb +1 -1
  43. data/lib/cybrid_api_bank_ruby/models/counterparty_address_bank_model.rb +1 -1
  44. data/lib/cybrid_api_bank_ruby/models/counterparty_aliases_inner_bank_model.rb +1 -1
  45. data/lib/cybrid_api_bank_ruby/models/counterparty_bank_model.rb +1 -1
  46. data/lib/cybrid_api_bank_ruby/models/counterparty_list_bank_model.rb +1 -1
  47. data/lib/cybrid_api_bank_ruby/models/counterparty_name_bank_model.rb +1 -1
  48. data/lib/cybrid_api_bank_ruby/models/counterparty_state_bank_model.rb +1 -1
  49. data/lib/cybrid_api_bank_ruby/models/counterparty_type_bank_model.rb +1 -1
  50. data/lib/cybrid_api_bank_ruby/models/customer_address_bank_model.rb +1 -1
  51. data/lib/cybrid_api_bank_ruby/models/customer_aliases_inner_bank_model.rb +1 -1
  52. data/lib/cybrid_api_bank_ruby/models/customer_bank_model.rb +1 -1
  53. data/lib/cybrid_api_bank_ruby/models/customer_list_bank_model.rb +1 -1
  54. data/lib/cybrid_api_bank_ruby/models/customer_name_bank_model.rb +1 -1
  55. data/lib/cybrid_api_bank_ruby/models/customer_state_bank_model.rb +1 -1
  56. data/lib/cybrid_api_bank_ruby/models/customer_type_bank_model.rb +1 -1
  57. data/lib/cybrid_api_bank_ruby/models/deposit_address_bank_model.rb +1 -1
  58. data/lib/cybrid_api_bank_ruby/models/deposit_address_format_bank_model.rb +1 -1
  59. data/lib/cybrid_api_bank_ruby/models/deposit_address_list_bank_model.rb +1 -1
  60. data/lib/cybrid_api_bank_ruby/models/deposit_address_state_bank_model.rb +1 -1
  61. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_account_details_inner_bank_model.rb +1 -1
  62. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_bank_model.rb +1 -1
  63. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_counterparty_address_bank_model.rb +1 -1
  64. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_list_bank_model.rb +1 -1
  65. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_routing_details_inner_bank_model.rb +1 -1
  66. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_routing_number_type_bank_model.rb +1 -1
  67. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_state_bank_model.rb +1 -1
  68. data/lib/cybrid_api_bank_ruby/models/error_response_bank_model.rb +1 -1
  69. data/lib/cybrid_api_bank_ruby/models/external_bank_account_balances_bank_model.rb +1 -1
  70. data/lib/cybrid_api_bank_ruby/models/external_bank_account_bank_model.rb +1 -1
  71. data/lib/cybrid_api_bank_ruby/models/external_bank_account_kind_bank_model.rb +1 -1
  72. data/lib/cybrid_api_bank_ruby/models/external_bank_account_list_bank_model.rb +1 -1
  73. data/lib/cybrid_api_bank_ruby/models/external_bank_account_pii_inner_addresses_inner_bank_model.rb +1 -1
  74. data/lib/cybrid_api_bank_ruby/models/external_bank_account_pii_inner_bank_model.rb +1 -1
  75. data/lib/cybrid_api_bank_ruby/models/external_bank_account_state_bank_model.rb +1 -1
  76. data/lib/cybrid_api_bank_ruby/models/external_wallet_bank_model.rb +1 -1
  77. data/lib/cybrid_api_bank_ruby/models/external_wallet_environment_bank_model.rb +1 -1
  78. data/lib/cybrid_api_bank_ruby/models/external_wallet_list_bank_model.rb +1 -1
  79. data/lib/cybrid_api_bank_ruby/models/external_wallet_state_bank_model.rb +1 -1
  80. data/lib/cybrid_api_bank_ruby/models/identity_verification_bank_model.rb +1 -1
  81. data/lib/cybrid_api_bank_ruby/models/identity_verification_list_bank_model.rb +1 -1
  82. data/lib/cybrid_api_bank_ruby/models/identity_verification_method_bank_model.rb +1 -1
  83. data/lib/cybrid_api_bank_ruby/models/identity_verification_outcome_bank_model.rb +1 -1
  84. data/lib/cybrid_api_bank_ruby/models/identity_verification_persona_state_bank_model.rb +1 -1
  85. data/lib/cybrid_api_bank_ruby/models/identity_verification_state_bank_model.rb +1 -1
  86. data/lib/cybrid_api_bank_ruby/models/identity_verification_type_bank_model.rb +1 -1
  87. data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_bank_model.rb +1 -1
  88. data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_pii_address_bank_model.rb +1 -1
  89. data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_pii_bank_model.rb +1 -1
  90. data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_pii_name_bank_model.rb +1 -1
  91. data/lib/cybrid_api_bank_ruby/models/invoice_bank_model.rb +1 -1
  92. data/lib/cybrid_api_bank_ruby/models/invoice_list_bank_model.rb +1 -1
  93. data/lib/cybrid_api_bank_ruby/models/patch_bank_bank_model.rb +1 -1
  94. data/lib/cybrid_api_bank_ruby/models/patch_customer_bank_model.rb +1 -1
  95. data/lib/cybrid_api_bank_ruby/models/patch_external_bank_account_bank_model.rb +1 -1
  96. data/lib/cybrid_api_bank_ruby/models/payment_instruction_bank_model.rb +1 -1
  97. data/lib/cybrid_api_bank_ruby/models/payment_instruction_list_bank_model.rb +1 -1
  98. data/lib/cybrid_api_bank_ruby/models/post_account_bank_model.rb +1 -1
  99. data/lib/cybrid_api_bank_ruby/models/post_bank_bank_model.rb +1 -1
  100. data/lib/cybrid_api_bank_ruby/models/post_counterparty_bank_model.rb +1 -1
  101. data/lib/cybrid_api_bank_ruby/models/post_counterparty_name_bank_model.rb +1 -1
  102. data/lib/cybrid_api_bank_ruby/models/post_customer_address_bank_model.rb +1 -1
  103. data/lib/cybrid_api_bank_ruby/models/post_customer_bank_model.rb +1 -1
  104. data/lib/cybrid_api_bank_ruby/models/post_customer_name_bank_model.rb +1 -1
  105. data/lib/cybrid_api_bank_ruby/models/post_deposit_address_bank_model.rb +1 -1
  106. data/lib/cybrid_api_bank_ruby/models/post_deposit_bank_account_bank_model.rb +1 -1
  107. data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_bank_model.rb +1 -1
  108. data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_counterparty_address_bank_model.rb +1 -1
  109. data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_counterparty_bank_account_bank_model.rb +1 -1
  110. data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_counterparty_name_bank_model.rb +1 -1
  111. data/lib/cybrid_api_bank_ruby/models/post_external_wallet_bank_model.rb +1 -1
  112. data/lib/cybrid_api_bank_ruby/models/post_fee_bank_model.rb +1 -1
  113. data/lib/cybrid_api_bank_ruby/models/post_identification_number_bank_model.rb +1 -1
  114. data/lib/cybrid_api_bank_ruby/models/post_identity_verification_address_bank_model.rb +1 -1
  115. data/lib/cybrid_api_bank_ruby/models/post_identity_verification_bank_model.rb +1 -1
  116. data/lib/cybrid_api_bank_ruby/models/post_identity_verification_name_bank_model.rb +1 -1
  117. data/lib/cybrid_api_bank_ruby/models/post_invoice_bank_model.rb +1 -1
  118. data/lib/cybrid_api_bank_ruby/models/post_payment_instruction_bank_model.rb +1 -1
  119. data/lib/cybrid_api_bank_ruby/models/post_quote_bank_model.rb +1 -1
  120. data/lib/cybrid_api_bank_ruby/models/post_trade_bank_model.rb +1 -1
  121. data/lib/cybrid_api_bank_ruby/models/post_transfer_bank_model.rb +1 -1
  122. data/lib/cybrid_api_bank_ruby/models/post_workflow_bank_model.rb +1 -1
  123. data/lib/cybrid_api_bank_ruby/models/quote_bank_model.rb +1 -1
  124. data/lib/cybrid_api_bank_ruby/models/quote_list_bank_model.rb +1 -1
  125. data/lib/cybrid_api_bank_ruby/models/quote_side_bank_model.rb +1 -1
  126. data/lib/cybrid_api_bank_ruby/models/quote_type_bank_model.rb +1 -1
  127. data/lib/cybrid_api_bank_ruby/models/symbol_price_bank_model.rb +1 -1
  128. data/lib/cybrid_api_bank_ruby/models/trade_bank_model.rb +1 -1
  129. data/lib/cybrid_api_bank_ruby/models/trade_failure_code_bank_model.rb +1 -1
  130. data/lib/cybrid_api_bank_ruby/models/trade_list_bank_model.rb +1 -1
  131. data/lib/cybrid_api_bank_ruby/models/trade_side_bank_model.rb +1 -1
  132. data/lib/cybrid_api_bank_ruby/models/trade_state_bank_model.rb +1 -1
  133. data/lib/cybrid_api_bank_ruby/models/trade_type_bank_model.rb +1 -1
  134. data/lib/cybrid_api_bank_ruby/models/transfer_account_type_bank_model.rb +1 -1
  135. data/lib/cybrid_api_bank_ruby/models/transfer_bank_model.rb +1 -1
  136. data/lib/cybrid_api_bank_ruby/models/transfer_destination_account_bank_model.rb +1 -1
  137. data/lib/cybrid_api_bank_ruby/models/transfer_failure_code_bank_model.rb +1 -1
  138. data/lib/cybrid_api_bank_ruby/models/transfer_list_bank_model.rb +1 -1
  139. data/lib/cybrid_api_bank_ruby/models/transfer_side_bank_model.rb +1 -1
  140. data/lib/cybrid_api_bank_ruby/models/transfer_source_account_bank_model.rb +1 -1
  141. data/lib/cybrid_api_bank_ruby/models/transfer_state_bank_model.rb +1 -1
  142. data/lib/cybrid_api_bank_ruby/models/transfer_type_bank_model.rb +1 -1
  143. data/lib/cybrid_api_bank_ruby/models/workflow_bank_model.rb +1 -1
  144. data/lib/cybrid_api_bank_ruby/models/workflow_state_bank_model.rb +1 -1
  145. data/lib/cybrid_api_bank_ruby/models/workflow_type_bank_model.rb +1 -1
  146. data/lib/cybrid_api_bank_ruby/models/workflow_with_details_all_of_bank_model.rb +1 -1
  147. data/lib/cybrid_api_bank_ruby/models/workflow_with_details_bank_model.rb +1 -1
  148. data/lib/cybrid_api_bank_ruby/models/workflows_list_bank_model.rb +1 -1
  149. data/lib/cybrid_api_bank_ruby/version.rb +2 -2
  150. data/lib/cybrid_api_bank_ruby.rb +1 -1
  151. data/spec/api/accounts_bank_api_spec.rb +1 -1
  152. data/spec/api/assets_bank_api_spec.rb +1 -1
  153. data/spec/api/banks_bank_api_spec.rb +1 -1
  154. data/spec/api/counterparties_bank_api_spec.rb +1 -1
  155. data/spec/api/customers_bank_api_spec.rb +1 -1
  156. data/spec/api/deposit_addresses_bank_api_spec.rb +1 -1
  157. data/spec/api/deposit_bank_accounts_bank_api_spec.rb +1 -1
  158. data/spec/api/external_bank_accounts_bank_api_spec.rb +1 -1
  159. data/spec/api/external_wallets_bank_api_spec.rb +1 -1
  160. data/spec/api/identity_verifications_bank_api_spec.rb +1 -1
  161. data/spec/api/invoices_bank_api_spec.rb +1 -1
  162. data/spec/api/payment_instructions_bank_api_spec.rb +1 -1
  163. data/spec/api/prices_bank_api_spec.rb +1 -1
  164. data/spec/api/quotes_bank_api_spec.rb +1 -1
  165. data/spec/api/symbols_bank_api_spec.rb +1 -1
  166. data/spec/api/trades_bank_api_spec.rb +1 -1
  167. data/spec/api/transfers_bank_api_spec.rb +1 -1
  168. data/spec/api/workflows_bank_api_spec.rb +1 -1
  169. data/spec/api_client_spec.rb +1 -1
  170. data/spec/configuration_spec.rb +1 -1
  171. data/spec/models/account_bank_model_spec.rb +1 -1
  172. data/spec/models/account_list_bank_model_spec.rb +1 -1
  173. data/spec/models/account_state_bank_model_spec.rb +1 -1
  174. data/spec/models/account_type_bank_model_spec.rb +1 -1
  175. data/spec/models/asset_bank_model_spec.rb +1 -1
  176. data/spec/models/asset_list_bank_model_spec.rb +1 -1
  177. data/spec/models/asset_types_bank_model_spec.rb +1 -1
  178. data/spec/models/bank_bank_model_spec.rb +1 -1
  179. data/spec/models/bank_feature_bank_model_spec.rb +1 -1
  180. data/spec/models/bank_list_bank_model_spec.rb +1 -1
  181. data/spec/models/bank_type_bank_model_spec.rb +1 -1
  182. data/spec/models/compliance_check_bank_model_spec.rb +1 -1
  183. data/spec/models/compliance_check_outcome_bank_model_spec.rb +1 -1
  184. data/spec/models/compliance_check_type_bank_model_spec.rb +1 -1
  185. data/spec/models/compliance_decision_bank_model_spec.rb +1 -1
  186. data/spec/models/compliance_decision_state_bank_model_spec.rb +1 -1
  187. data/spec/models/compliance_decision_type_bank_model_spec.rb +1 -1
  188. data/spec/models/counterparty_address_bank_model_spec.rb +1 -1
  189. data/spec/models/counterparty_aliases_inner_bank_model_spec.rb +1 -1
  190. data/spec/models/counterparty_bank_model_spec.rb +1 -1
  191. data/spec/models/counterparty_list_bank_model_spec.rb +1 -1
  192. data/spec/models/counterparty_name_bank_model_spec.rb +1 -1
  193. data/spec/models/counterparty_state_bank_model_spec.rb +1 -1
  194. data/spec/models/counterparty_type_bank_model_spec.rb +1 -1
  195. data/spec/models/customer_address_bank_model_spec.rb +1 -1
  196. data/spec/models/customer_aliases_inner_bank_model_spec.rb +1 -1
  197. data/spec/models/customer_bank_model_spec.rb +1 -1
  198. data/spec/models/customer_list_bank_model_spec.rb +1 -1
  199. data/spec/models/customer_name_bank_model_spec.rb +1 -1
  200. data/spec/models/customer_state_bank_model_spec.rb +1 -1
  201. data/spec/models/customer_type_bank_model_spec.rb +1 -1
  202. data/spec/models/deposit_address_bank_model_spec.rb +1 -1
  203. data/spec/models/deposit_address_format_bank_model_spec.rb +1 -1
  204. data/spec/models/deposit_address_list_bank_model_spec.rb +1 -1
  205. data/spec/models/deposit_address_state_bank_model_spec.rb +1 -1
  206. data/spec/models/deposit_bank_account_account_details_inner_bank_model_spec.rb +1 -1
  207. data/spec/models/deposit_bank_account_bank_model_spec.rb +1 -1
  208. data/spec/models/deposit_bank_account_counterparty_address_bank_model_spec.rb +1 -1
  209. data/spec/models/deposit_bank_account_list_bank_model_spec.rb +1 -1
  210. data/spec/models/deposit_bank_account_routing_details_inner_bank_model_spec.rb +1 -1
  211. data/spec/models/deposit_bank_account_routing_number_type_bank_model_spec.rb +1 -1
  212. data/spec/models/deposit_bank_account_state_bank_model_spec.rb +1 -1
  213. data/spec/models/error_response_bank_model_spec.rb +1 -1
  214. data/spec/models/external_bank_account_balances_bank_model_spec.rb +1 -1
  215. data/spec/models/external_bank_account_bank_model_spec.rb +1 -1
  216. data/spec/models/external_bank_account_kind_bank_model_spec.rb +1 -1
  217. data/spec/models/external_bank_account_list_bank_model_spec.rb +1 -1
  218. data/spec/models/external_bank_account_pii_inner_addresses_inner_bank_model_spec.rb +1 -1
  219. data/spec/models/external_bank_account_pii_inner_bank_model_spec.rb +1 -1
  220. data/spec/models/external_bank_account_state_bank_model_spec.rb +1 -1
  221. data/spec/models/external_wallet_bank_model_spec.rb +1 -1
  222. data/spec/models/external_wallet_environment_bank_model_spec.rb +1 -1
  223. data/spec/models/external_wallet_list_bank_model_spec.rb +1 -1
  224. data/spec/models/external_wallet_state_bank_model_spec.rb +1 -1
  225. data/spec/models/identity_verification_bank_model_spec.rb +1 -1
  226. data/spec/models/identity_verification_list_bank_model_spec.rb +1 -1
  227. data/spec/models/identity_verification_method_bank_model_spec.rb +1 -1
  228. data/spec/models/identity_verification_outcome_bank_model_spec.rb +1 -1
  229. data/spec/models/identity_verification_persona_state_bank_model_spec.rb +1 -1
  230. data/spec/models/identity_verification_state_bank_model_spec.rb +1 -1
  231. data/spec/models/identity_verification_type_bank_model_spec.rb +1 -1
  232. data/spec/models/identity_verification_with_details_bank_model_spec.rb +1 -1
  233. data/spec/models/identity_verification_with_details_pii_address_bank_model_spec.rb +1 -1
  234. data/spec/models/identity_verification_with_details_pii_bank_model_spec.rb +1 -1
  235. data/spec/models/identity_verification_with_details_pii_name_bank_model_spec.rb +1 -1
  236. data/spec/models/invoice_bank_model_spec.rb +1 -1
  237. data/spec/models/invoice_list_bank_model_spec.rb +1 -1
  238. data/spec/models/patch_bank_bank_model_spec.rb +1 -1
  239. data/spec/models/patch_customer_bank_model_spec.rb +1 -1
  240. data/spec/models/patch_external_bank_account_bank_model_spec.rb +1 -1
  241. data/spec/models/payment_instruction_bank_model_spec.rb +1 -1
  242. data/spec/models/payment_instruction_list_bank_model_spec.rb +1 -1
  243. data/spec/models/post_account_bank_model_spec.rb +1 -1
  244. data/spec/models/post_bank_bank_model_spec.rb +1 -1
  245. data/spec/models/post_counterparty_bank_model_spec.rb +1 -1
  246. data/spec/models/post_counterparty_name_bank_model_spec.rb +1 -1
  247. data/spec/models/post_customer_address_bank_model_spec.rb +1 -1
  248. data/spec/models/post_customer_bank_model_spec.rb +1 -1
  249. data/spec/models/post_customer_name_bank_model_spec.rb +1 -1
  250. data/spec/models/post_deposit_address_bank_model_spec.rb +1 -1
  251. data/spec/models/post_deposit_bank_account_bank_model_spec.rb +1 -1
  252. data/spec/models/post_external_bank_account_bank_model_spec.rb +1 -1
  253. data/spec/models/post_external_bank_account_counterparty_address_bank_model_spec.rb +1 -1
  254. data/spec/models/post_external_bank_account_counterparty_bank_account_bank_model_spec.rb +1 -1
  255. data/spec/models/post_external_bank_account_counterparty_name_bank_model_spec.rb +1 -1
  256. data/spec/models/post_external_wallet_bank_model_spec.rb +1 -1
  257. data/spec/models/post_fee_bank_model_spec.rb +1 -1
  258. data/spec/models/post_identification_number_bank_model_spec.rb +1 -1
  259. data/spec/models/post_identity_verification_address_bank_model_spec.rb +1 -1
  260. data/spec/models/post_identity_verification_bank_model_spec.rb +1 -1
  261. data/spec/models/post_identity_verification_name_bank_model_spec.rb +1 -1
  262. data/spec/models/post_invoice_bank_model_spec.rb +1 -1
  263. data/spec/models/post_payment_instruction_bank_model_spec.rb +1 -1
  264. data/spec/models/post_quote_bank_model_spec.rb +1 -1
  265. data/spec/models/post_trade_bank_model_spec.rb +1 -1
  266. data/spec/models/post_transfer_bank_model_spec.rb +1 -1
  267. data/spec/models/post_workflow_bank_model_spec.rb +1 -1
  268. data/spec/models/quote_bank_model_spec.rb +1 -1
  269. data/spec/models/quote_list_bank_model_spec.rb +1 -1
  270. data/spec/models/quote_side_bank_model_spec.rb +1 -1
  271. data/spec/models/quote_type_bank_model_spec.rb +1 -1
  272. data/spec/models/symbol_price_bank_model_spec.rb +1 -1
  273. data/spec/models/trade_bank_model_spec.rb +1 -1
  274. data/spec/models/trade_failure_code_bank_model_spec.rb +1 -1
  275. data/spec/models/trade_list_bank_model_spec.rb +1 -1
  276. data/spec/models/trade_side_bank_model_spec.rb +1 -1
  277. data/spec/models/trade_state_bank_model_spec.rb +1 -1
  278. data/spec/models/trade_type_bank_model_spec.rb +1 -1
  279. data/spec/models/transfer_account_type_bank_model_spec.rb +1 -1
  280. data/spec/models/transfer_bank_model_spec.rb +1 -1
  281. data/spec/models/transfer_destination_account_bank_model_spec.rb +1 -1
  282. data/spec/models/transfer_failure_code_bank_model_spec.rb +1 -1
  283. data/spec/models/transfer_list_bank_model_spec.rb +1 -1
  284. data/spec/models/transfer_side_bank_model_spec.rb +1 -1
  285. data/spec/models/transfer_source_account_bank_model_spec.rb +1 -1
  286. data/spec/models/transfer_state_bank_model_spec.rb +1 -1
  287. data/spec/models/transfer_type_bank_model_spec.rb +1 -1
  288. data/spec/models/workflow_bank_model_spec.rb +1 -1
  289. data/spec/models/workflow_state_bank_model_spec.rb +1 -1
  290. data/spec/models/workflow_type_bank_model_spec.rb +1 -1
  291. data/spec/models/workflow_with_details_all_of_bank_model_spec.rb +1 -1
  292. data/spec/models/workflow_with_details_bank_model_spec.rb +1 -1
  293. data/spec/models/workflows_list_bank_model_spec.rb +1 -1
  294. data/spec/spec_helper.rb +1 -1
  295. data/vendor/bundle/ruby/3.2.0/cache/racc-1.8.0.gem +0 -0
  296. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
  297. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/gem_make.out +5 -5
  298. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  299. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.2/gem_make.out +5 -5
  300. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{racc-1.7.3 → racc-1.8.0}/gem_make.out +18 -18
  301. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.0/racc/cparse.so +0 -0
  302. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.1.0/gem_make.out +5 -5
  303. data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/ChangeLog +3 -3
  304. data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/README.ja.rdoc +2 -10
  305. data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/bin/racc +26 -32
  306. data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/en/grammar.en.rdoc +99 -107
  307. data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/ext/racc/cparse/Makefile +1 -1
  308. data/vendor/bundle/ruby/3.2.0/gems/racc-1.8.0/lib/racc/cparse.so +0 -0
  309. data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/grammar.rb +77 -0
  310. data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/grammarfileparser.rb +114 -8
  311. data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/info.rb +1 -1
  312. data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/parser-text.rb +1 -5
  313. data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/parser.rb +0 -4
  314. data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/state.rb +4 -0
  315. data/vendor/bundle/ruby/3.2.0/specifications/{racc-1.7.3.gemspec → racc-1.8.0.gemspec} +3 -3
  316. metadata +41 -41
  317. data/vendor/bundle/ruby/3.2.0/cache/racc-1.7.3.gem +0 -0
  318. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/racc/cparse.so +0 -0
  319. data/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/lib/racc/cparse.so +0 -0
  320. /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{racc-1.7.3 → racc-1.8.0}/gem.build_complete +0 -0
  321. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/COPYING +0 -0
  322. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/README.rdoc +0 -0
  323. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/TODO +0 -0
  324. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/en/grammar2.en.rdoc +0 -0
  325. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/ja/command.ja.html +0 -0
  326. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/ja/debug.ja.rdoc +0 -0
  327. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/ja/grammar.ja.rdoc +0 -0
  328. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/ja/index.ja.html +0 -0
  329. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/ja/parser.ja.rdoc +0 -0
  330. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/doc/ja/usage.ja.html +0 -0
  331. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/ext/racc/cparse/cparse.c +0 -0
  332. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/ext/racc/cparse/extconf.rb +0 -0
  333. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/compat.rb +0 -0
  334. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/debugflags.rb +0 -0
  335. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/exception.rb +0 -0
  336. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/iset.rb +0 -0
  337. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/logfilegenerator.rb +0 -0
  338. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/parserfilegenerator.rb +0 -0
  339. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/sourcetext.rb +0 -0
  340. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/statetransitiontable.rb +0 -0
  341. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc/static.rb +0 -0
  342. /data/vendor/bundle/ruby/3.2.0/gems/{racc-1.7.3 → racc-1.8.0}/lib/racc.rb +0 -0
@@ -30,7 +30,7 @@ def main
30
30
  profiler = RaccProfiler.new(false)
31
31
 
32
32
  parser = OptionParser.new
33
- parser.banner = "Usage: #{File.basename($0)} [options] <input>"
33
+ parser.banner = "Usage: #{File.basename($0)} [options] [input]"
34
34
  parser.on('-o', '--output-file=PATH',
35
35
  'output file name [<input>.tab.rb]') {|name|
36
36
  output = name
@@ -92,54 +92,52 @@ def main
92
92
  #}
93
93
  parser.on('--version', 'Prints version and quit.') {
94
94
  puts "racc version #{Racc::Version}"
95
- exit 0
95
+ exit
96
96
  }
97
97
  parser.on('--runtime-version', 'Prints runtime version and quit.') {
98
- printf "racc runtime version %s; %s\n",
98
+ printf "racc runtime version %s; %s core version %s\n",
99
99
  Racc::Parser::Racc_Runtime_Version,
100
+ Racc::Parser.racc_runtime_type,
100
101
  if Racc::Parser.racc_runtime_type == 'ruby'
101
- sprintf('ruby core version %s',
102
- Racc::Parser::Racc_Runtime_Core_Version_R)
102
+ Racc::Parser::Racc_Runtime_Core_Version_R
103
103
  else
104
- sprintf('c core version %s',
105
- Racc::Parser::Racc_Runtime_Core_Version_C)
104
+ Racc::Parser::Racc_Runtime_Core_Version_C
106
105
  end
107
- exit 0
106
+ exit
108
107
  }
109
108
  parser.on('--copyright', 'Prints copyright and quit.') {
110
109
  puts Racc::Copyright
111
- exit 0
110
+ exit
112
111
  }
113
112
  parser.on('--help', 'Prints this message and quit.') {
114
113
  puts parser.help
115
- exit 1
114
+ exit
116
115
  }
117
116
  begin
118
117
  parser.parse!
119
118
  rescue OptionParser::ParseError => err
120
- $stderr.puts err.message
121
- $stderr.puts parser.help
122
- exit 1
123
- end
124
- if ARGV.empty?
125
- $stderr.puts 'no input'
126
- exit 1
119
+ abort [err.message, parser.help].join("\n")
127
120
  end
128
121
  if ARGV.size > 1
129
- $stderr.puts 'too many input'
130
- exit 1
122
+ abort 'too many input'
123
+ end
124
+
125
+ input = ARGV[0] || "stdin"
126
+
127
+ if input == "stdin" && !output then
128
+ abort 'You must specify a path to read or use -o <path> for output.'
131
129
  end
132
- input = ARGV[0]
133
130
 
134
131
  begin
135
132
  $stderr.puts 'Parsing grammar file...' if verbose
136
133
  result = profiler.section('parse') {
137
134
  parser = Racc::GrammarFileParser.new(debug_flags)
138
- parser.parse(File.read(input), File.basename(input))
135
+ content = input == "stdin" ? ARGF.read : File.read(input)
136
+ parser.parse(content, File.basename(input))
139
137
  }
140
138
  if check_only
141
139
  $stderr.puts 'syntax ok'
142
- exit 0
140
+ exit
143
141
  end
144
142
 
145
143
  $stderr.puts 'Generating LALR states...' if verbose
@@ -195,11 +193,13 @@ def main
195
193
  end
196
194
 
197
195
  profiler.report
196
+ if states.should_error_on_expect_mismatch?
197
+ raise Racc::CompileError, "#{states.grammar.n_expected_srconflicts} shift/reduce conflicts are expected but #{states.n_srconflicts} shift/reduce conflicts exist"
198
+ end
198
199
  rescue Racc::Error, Errno::ENOENT, Errno::EPERM => err
199
200
  raise if $DEBUG or debug_flags.any?
200
201
  lineno = err.message.slice(/\A\d+:/).to_s
201
- $stderr.puts "#{File.basename $0}: #{input}:#{lineno} #{err.message.strip}"
202
- exit 1
202
+ abort "#{File.basename $0}: #{input}:#{lineno} #{err.message.strip}"
203
203
  end
204
204
  end
205
205
 
@@ -276,19 +276,13 @@ class RaccProfiler
276
276
  def initialize(really)
277
277
  @really = really
278
278
  @log = []
279
- unless ::Process.respond_to?(:times)
280
- # Ruby 1.6
281
- @class = ::Time
282
- else
283
- @class = ::Process
284
- end
285
279
  end
286
280
 
287
281
  def section(name)
288
282
  if @really
289
- t1 = @class.times.utime
283
+ t1 = ::Process.times.utime
290
284
  result = yield
291
- t2 = @class.times.utime
285
+ t2 = ::Process.times.utime
292
286
  @log.push [name, t2 - t1]
293
287
  result
294
288
  else
@@ -15,48 +15,47 @@ supported: Ruby style (`# ...`) and C style (`/* ... */`).
15
15
  == Class Block
16
16
 
17
17
  The class block is formed like this:
18
- --
19
- class CLASS_NAME
20
- [precedence table]
21
- [token declarations]
22
- [expected number of S/R conflict]
23
- [options]
24
- [semantic value conversion]
25
- [start rule]
26
- rule
27
- GRAMMARS
28
- --
18
+
19
+ class CLASS_NAME
20
+ [precedence table]
21
+ [token declarations]
22
+ [expected number of S/R conflict]
23
+ [options]
24
+ [semantic value conversion]
25
+ [start rule]
26
+ rule
27
+ GRAMMARS
28
+
29
29
  CLASS_NAME is a name of parser class.
30
30
  This is the name of generating parser class.
31
31
 
32
32
  If CLASS_NAME includes '::', Racc outputs module clause.
33
- For example, writing "class M::C" causes creating the code bellow:
34
- --
35
- module M
36
- class C
37
- :
38
- :
33
+ For example, writing "class M::C" causes creating the code below:
34
+
35
+ module M
36
+ class C
37
+ :
38
+ :
39
+ end
39
40
  end
40
- end
41
- --
42
41
 
43
42
  == Grammar Block
44
43
 
45
44
  The grammar block describes the grammar
46
45
  to be understood by parser. Syntax is:
47
- --
48
- (token): (token) (token) (token).... (action)
49
46
 
50
- (token): (token) (token) (token).... (action)
51
- | (token) (token) (token).... (action)
52
- | (token) (token) (token).... (action)
53
- --
47
+ (token): (token) (token) (token).... (action)
48
+
49
+ (token): (token) (token) (token).... (action)
50
+ | (token) (token) (token).... (action)
51
+ | (token) (token) (token).... (action)
52
+
54
53
  (action) is an action which is executed when its (token)s are found.
55
54
  (action) is a ruby code block, which is surrounded by braces:
56
- --
57
- { print val[0]
58
- puts val[1] }
59
- --
55
+
56
+ { print val[0]
57
+ puts val[1] }
58
+
60
59
  Note that you cannot use '%' string, here document, '%r' regexp in action.
61
60
 
62
61
  Actions can be omitted.
@@ -66,20 +65,20 @@ A return value of action is a value of left side value ($$).
66
65
  It is value of result, or returned value by "return" statement.
67
66
 
68
67
  Here is an example of whole grammar block.
69
- --
70
- rule
71
- goal: definition rules source { result = val }
72
-
73
- definition: /* none */ { result = [] }
74
- | definition startdesig { result[0] = val[1] }
75
- | definition
76
- precrule # this line continue from upper line
77
- {
78
- result[1] = val[1]
79
- }
80
-
81
- startdesig: START TOKEN
82
- --
68
+
69
+ rule
70
+ goal: definition rules source { result = val }
71
+
72
+ definition: /* none */ { result = [] }
73
+ | definition startdesig { result[0] = val[1] }
74
+ | definition
75
+ precrule # this line continue from upper line
76
+ {
77
+ result[1] = val[1]
78
+ }
79
+
80
+ startdesig: START TOKEN
81
+
83
82
  You can use following special local variables in action.
84
83
 
85
84
  * result ($$)
@@ -99,45 +98,43 @@ DO NOT MODIFY this stack unless you know what you are doing.
99
98
 
100
99
  This function is equal to '%prec' in yacc.
101
100
  To designate this block:
102
- --
103
- prechigh
104
- nonassoc '++'
105
- left '*' '/'
106
- left '+' '-'
107
- right '='
108
- preclow
109
- --
101
+
102
+ prechigh
103
+ nonassoc '++'
104
+ left '*' '/'
105
+ left '+' '-'
106
+ right '='
107
+ preclow
108
+
110
109
  `right' is yacc's %right, `left' is yacc's %left.
111
110
 
112
111
  `=' + (symbol) means yacc's %prec:
113
- --
114
- prechigh
115
- nonassoc UMINUS
116
- left '*' '/'
117
- left '+' '-'
118
- preclow
119
-
120
- rule
121
- exp: exp '*' exp
122
- | exp '-' exp
123
- | '-' exp =UMINUS # equals to "%prec UMINUS"
124
- :
125
- :
126
- --
112
+
113
+ prechigh
114
+ nonassoc UMINUS
115
+ left '*' '/'
116
+ left '+' '-'
117
+ preclow
118
+
119
+ rule
120
+ exp: exp '*' exp
121
+ | exp '-' exp
122
+ | '-' exp =UMINUS # equals to "%prec UMINUS"
123
+ :
124
+ :
127
125
 
128
126
  == expect
129
127
 
130
128
  Racc supports Bison's "expect" directive to declare the expected
131
129
  number of shift/reduce conflicts.
132
- --
133
- class MyParser
134
- expect 3
135
- rule
136
- :
137
- :
138
- --
139
- Then warnings are issued only when the effective number of conflicts differs.
140
130
 
131
+ class MyParser
132
+ expect 3
133
+ rule
134
+ :
135
+ :
136
+
137
+ Then warnings are issued only when the effective number of conflicts differs.
141
138
 
142
139
  == Declaring Tokens
143
140
 
@@ -145,17 +142,16 @@ Declaring tokens avoids many bugs.
145
142
 
146
143
  Racc outputs warnings for declared tokens that do not exist, or existing tokens not declared.
147
144
  The syntax is:
148
- --
149
- token TOKEN_NAME AND_IS_THIS
150
- ALSO_THIS_IS AGAIN_AND_AGAIN THIS_IS_LAST
151
- --
145
+
146
+ token TOKEN_NAME AND_IS_THIS
147
+ ALSO_THIS_IS AGAIN_AND_AGAIN THIS_IS_LAST
152
148
 
153
149
  == Options
154
150
 
155
151
  You can write options for racc command in your racc file.
156
- --
157
- options OPTION OPTION ...
158
- --
152
+
153
+ options OPTION OPTION ...
154
+
159
155
  Options are:
160
156
 
161
157
  * omit_action_call
@@ -179,32 +175,29 @@ Token symbols are, as default,
179
175
 
180
176
  You can change this default using a "convert" block.
181
177
  Here is an example:
182
- --
183
- convert
184
- PLUS 'PlusClass' # We use PlusClass for symbol of `PLUS'
185
- MIN 'MinusClass' # We use MinusClass for symbol of `MIN'
186
- end
187
- --
178
+
179
+ convert
180
+ PLUS 'PlusClass' # We use PlusClass for symbol of `PLUS'
181
+ MIN 'MinusClass' # We use MinusClass for symbol of `MIN'
182
+ end
183
+
188
184
  We can use almost all ruby value can be used by token symbol,
189
185
  except 'false' and 'nil'. These are causes unexpected parse error.
190
186
 
191
187
  If you want to use String as token symbol, special care is required.
192
188
  For example:
193
- --
194
- convert
195
- class '"cls"' # in code, "cls"
196
- PLUS '"plus\n"' # in code, "plus\n"
197
- MIN "\"minus#{val}\"" # in code, \"minus#{val}\"
198
- end
199
- --
189
+
190
+ convert
191
+ class '"cls"' # in code, "cls"
192
+ PLUS '"plus\n"' # in code, "plus\n"
193
+ MIN "\"minus#{val}\"" # in code, \"minus#{val}\"
194
+ end
200
195
 
201
196
  == Start Rule
202
197
 
203
198
  '%start' in yacc. This changes the start symbol.
204
- --
205
- start real_target
206
- --
207
199
 
200
+ start real_target
208
201
 
209
202
  == User Code Block
210
203
 
@@ -213,14 +206,13 @@ There are three user code blocks, "header" "inner" and "footer".
213
206
 
214
207
  User code blocks are introduced by four '-' at the beginning of a line,
215
208
  followed by a single-word name:
216
- --
217
- ---- header
218
- ruby statement
219
- ruby statement
220
- ruby statement
221
-
222
- ---- inner
223
- ruby statement
224
- :
225
- :
226
- --
209
+
210
+ ---- header
211
+ ruby statement
212
+ ruby statement
213
+ ruby statement
214
+
215
+ ---- inner
216
+ ruby statement
217
+ :
218
+ :
@@ -88,7 +88,7 @@ CCDLFLAGS = -fPIC
88
88
  CFLAGS = $(CCDLFLAGS) $(cflags) -fPIC $(ARCH_FLAG)
89
89
  INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
90
90
  DEFS =
91
- CPPFLAGS = -DRACC_INFO_VERSION=1.7.3 $(DEFS) $(cppflags)
91
+ CPPFLAGS = -DRACC_INFO_VERSION=1.8.0 $(DEFS) $(cppflags)
92
92
  CXXFLAGS = $(CCDLFLAGS) $(ARCH_FLAG)
93
93
  ldflags = -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed
94
94
  dldflags = -Wl,--compress-debug-sections=zlib
@@ -27,6 +27,7 @@ module Racc
27
27
  @rules = [] # :: [Rule]
28
28
  @start = nil
29
29
  @n_expected_srconflicts = nil
30
+ @error_on_expect_mismatch = nil
30
31
  @prec_table = []
31
32
  @prec_table_closed = false
32
33
  @closed = false
@@ -36,6 +37,7 @@ module Racc
36
37
  attr_reader :start
37
38
  attr_reader :symboltable
38
39
  attr_accessor :n_expected_srconflicts
40
+ attr_accessor :error_on_expect_mismatch
39
41
 
40
42
  def [](x)
41
43
  @rules[x]
@@ -787,6 +789,81 @@ module Racc
787
789
  end
788
790
 
789
791
 
792
+ class OptionMark
793
+ def initialize(lineno)
794
+ @lineno = lineno
795
+ end
796
+
797
+ def name
798
+ '?'
799
+ end
800
+
801
+ alias inspect name
802
+
803
+ attr_reader :lineno
804
+ end
805
+
806
+
807
+ class ManyMark
808
+ def initialize(lineno)
809
+ @lineno = lineno
810
+ end
811
+
812
+ def name
813
+ '*'
814
+ end
815
+
816
+ alias inspect name
817
+
818
+ attr_reader :lineno
819
+ end
820
+
821
+
822
+ class Many1Mark
823
+ def initialize(lineno)
824
+ @lineno = lineno
825
+ end
826
+
827
+ def name
828
+ '+'
829
+ end
830
+
831
+ alias inspect name
832
+
833
+ attr_reader :lineno
834
+ end
835
+
836
+
837
+ class GroupStartMark
838
+ def initialize(lineno)
839
+ @lineno = lineno
840
+ end
841
+
842
+ def name
843
+ '('
844
+ end
845
+
846
+ alias inspect name
847
+
848
+ attr_reader :lineno
849
+ end
850
+
851
+
852
+ class GroupEndMark
853
+ def initialize(lineno)
854
+ @lineno = lineno
855
+ end
856
+
857
+ def name
858
+ ')'
859
+ end
860
+
861
+ alias inspect name
862
+
863
+ attr_reader :lineno
864
+ end
865
+
866
+
790
867
  class Prec
791
868
  def initialize(symbol, lineno)
792
869
  @symbol = symbol
@@ -76,6 +76,9 @@ module Racc
76
76
  raise CompileError, "`expect' seen twice"
77
77
  end
78
78
  @grammar.n_expected_srconflicts = num
79
+ }\
80
+ | seq(:ERROR_ON_EXPECT_MISMATCH) {|*|
81
+ @grammar.error_on_expect_mismatch = true
79
82
  }
80
83
 
81
84
  g.convdef = seq(:symbol, :STRING) {|sym, code|
@@ -133,6 +136,21 @@ module Racc
133
136
  | seq("|") {|*|
134
137
  OrMark.new(@scanner.lineno)
135
138
  }\
139
+ | seq("?") {|*|
140
+ OptionMark.new(@scanner.lineno)
141
+ }\
142
+ | seq("*") {|*|
143
+ ManyMark.new(@scanner.lineno)
144
+ }\
145
+ | seq("+") {|*|
146
+ Many1Mark.new(@scanner.lineno)
147
+ }\
148
+ | seq("(") {|*|
149
+ GroupStartMark.new(@scanner.lineno)
150
+ }\
151
+ | seq(")") {|*|
152
+ GroupEndMark.new(@scanner.lineno)
153
+ }\
136
154
  | seq("=", :symbol) {|_, sym|
137
155
  Prec.new(sym, @scanner.lineno)
138
156
  }\
@@ -210,27 +228,114 @@ module Racc
210
228
  end
211
229
 
212
230
  def add_rule_block(list)
213
- sprec = nil
214
231
  target = list.shift
215
232
  case target
216
- when OrMark, UserAction, Prec
233
+ when OrMark, OptionMark, ManyMark, Many1Mark, GroupStartMark, GroupEndMark, UserAction, Prec
217
234
  raise CompileError, "#{target.lineno}: unexpected symbol #{target.name}"
218
235
  end
236
+ enum = list.each.with_index
237
+ _, sym, idx = _add_rule_block(target, enum)
238
+ if idx
239
+ # sym is Racc::GroupEndMark
240
+ raise "#{sym.lineno}: unexpected symbol ')' at pos=#{idx}"
241
+ end
242
+ end
243
+
244
+ def _add_rule_block(target, enum)
245
+ rules = [] # [ [seqs, sprec], .. ]
219
246
  curr = []
220
- list.each do |i|
221
- case i
247
+ sprec = nil
248
+ while (sym, idx = enum.next rescue nil)
249
+ case sym
222
250
  when OrMark
223
- add_rule target, curr, sprec
251
+ rules << [curr, sprec]
224
252
  curr = []
225
253
  sprec = nil
254
+ when OptionMark
255
+ curr << _add_option_rule(curr.pop)
256
+ when ManyMark
257
+ curr << _add_many_rule(curr.pop)
258
+ when Many1Mark
259
+ curr << _add_many1_rule(curr.pop)
260
+ when GroupStartMark
261
+ curr << _add_group_rule(enum)
262
+ when GroupEndMark
263
+ rules << [curr, sprec]
264
+ return rules, sym, idx
226
265
  when Prec
227
266
  raise CompileError, "'=<prec>' used twice in one rule" if sprec
228
- sprec = i.symbol
267
+ sprec = sym.symbol
229
268
  else
230
- curr.push i
269
+ curr.push sym
231
270
  end
232
271
  end
233
- add_rule target, curr, sprec
272
+ rules << [curr, sprec]
273
+ rules.each do |syms, sprec|
274
+ add_rule target, syms, sprec
275
+ end
276
+ nil
277
+ end
278
+
279
+
280
+ def _add_option_rule(prev)
281
+ @option_rule_registry ||= {}
282
+ target = @option_rule_registry[prev.to_s]
283
+ return target if target
284
+ target = _gen_target_name("option", prev)
285
+ @option_rule_registry[prev.to_s] = target
286
+ act = UserAction.empty
287
+ @grammar.add Rule.new(target, [], act)
288
+ @grammar.add Rule.new(target, [prev], act)
289
+ target
290
+ end
291
+
292
+ def _add_many_rule(prev)
293
+ @many_rule_registry ||= {}
294
+ target = @many_rule_registry[prev.to_s]
295
+ return target if target
296
+ target = _gen_target_name("many", prev)
297
+ @many_rule_registry[prev.to_s] = target
298
+ src = SourceText.new("result = val[1] ? val[1].unshift(val[0]) : val", __FILE__, __LINE__)
299
+ act = UserAction.source_text(src)
300
+ @grammar.add Rule.new(target, [], act)
301
+ @grammar.add Rule.new(target, [prev, target], act)
302
+ target
303
+ end
304
+
305
+ def _add_many1_rule(prev)
306
+ @many1_rule_registry ||= {}
307
+ target = @many1_rule_registry[prev.to_s]
308
+ return target if target
309
+ target = _gen_target_name("many1", prev)
310
+ @many1_rule_registry[prev.to_s] = target
311
+ src = SourceText.new("result = val[1] ? val[1].unshift(val[0]) : val", __FILE__, __LINE__)
312
+ act = UserAction.source_text(src)
313
+ @grammar.add Rule.new(target, [prev], act)
314
+ @grammar.add Rule.new(target, [prev, target], act)
315
+ target
316
+ end
317
+
318
+ def _add_group_rule(enum)
319
+ target = @grammar.intern("-temp-group", true)
320
+ rules, _ = _add_rule_block(target, enum)
321
+ target_name = rules.map{|syms, sprec| syms.join("-")}.join("|")
322
+ @group_rule_registry ||= {}
323
+ unless target = @group_rule_registry[target_name]
324
+ target = @grammar.intern("-group@#{target_name}", true)
325
+ @group_rule_registry[target_name] = target
326
+ src = SourceText.new("result = val", __FILE__, __LINE__)
327
+ act = UserAction.source_text(src)
328
+ rules.each do |syms, sprec|
329
+ rule = Rule.new(target, syms, act)
330
+ rule.specified_prec = sprec
331
+ @grammar.add rule
332
+ end
333
+ end
334
+ target
335
+ end
336
+
337
+ def _gen_target_name(type, sym)
338
+ @grammar.intern("-#{type}@#{sym.value}", true)
234
339
  end
235
340
 
236
341
  def add_rule(target, list, sprec)
@@ -391,6 +496,7 @@ module Racc
391
496
  'options' => :OPTION,
392
497
  'start' => :START,
393
498
  'expect' => :EXPECT,
499
+ 'error_on_expect_mismatch' => :ERROR_ON_EXPECT_MISMATCH,
394
500
  'class' => :CLASS,
395
501
  'rule' => :RULE,
396
502
  'end' => :END
@@ -12,7 +12,7 @@
12
12
  #++
13
13
 
14
14
  module Racc
15
- VERSION = '1.7.3'
15
+ VERSION = '1.8.0'
16
16
  Version = VERSION
17
17
  Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
18
18
  end
@@ -15,7 +15,7 @@ unless $".find {|p| p.end_with?('/racc/info.rb')}
15
15
  $".push "#{__dir__}/racc/info.rb"
16
16
 
17
17
  module Racc
18
- VERSION = '1.7.3'
18
+ VERSION = '1.8.0'
19
19
  Version = VERSION
20
20
  Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
21
21
  end
@@ -23,10 +23,6 @@ end
23
23
  end
24
24
 
25
25
 
26
- unless defined?(NotImplementedError)
27
- NotImplementedError = NotImplementError # :nodoc:
28
- end
29
-
30
26
  module Racc
31
27
  class ParseError < StandardError; end
32
28
  end