ory-client 1.1.33 → 1.1.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -3
- data/README.md +8 -5
- data/docs/CreateSubscriptionBody.md +2 -0
- data/docs/FrontendApi.md +3 -1
- data/docs/GetProjectMetricsResponse.md +18 -0
- data/docs/IdentityApi.md +2 -2
- data/docs/InternalProvisionMockSubscription.md +2 -0
- data/docs/MetricsDatapoint.md +20 -0
- data/docs/NormalizedProjectRevisionThirdPartyProvider.md +2 -0
- data/docs/ProjectApi.md +78 -0
- data/docs/QuotaUsage.md +1 -1
- data/docs/SessionAuthenticationMethod.md +3 -1
- data/docs/Subscription.md +2 -0
- data/docs/UpdateLoginFlowWithOidcMethod.md +1 -1
- data/docs/UpdateRegistrationFlowWithOidcMethod.md +1 -1
- data/docs/UpdateSettingsFlowWithOidcMethod.md +1 -1
- data/docs/UpdateVerificationFlowWithLinkMethod.md +1 -1
- data/lib/ory-client/api/courier_api.rb +1 -1
- data/lib/ory-client/api/frontend_api.rb +4 -1
- data/lib/ory-client/api/identity_api.rb +7 -3
- data/lib/ory-client/api/jwk_api.rb +1 -1
- data/lib/ory-client/api/metadata_api.rb +1 -1
- data/lib/ory-client/api/o_auth2_api.rb +1 -1
- data/lib/ory-client/api/oidc_api.rb +1 -1
- data/lib/ory-client/api/permission_api.rb +1 -1
- data/lib/ory-client/api/project_api.rb +95 -1
- data/lib/ory-client/api/relationship_api.rb +1 -1
- data/lib/ory-client/api/wellknown_api.rb +1 -1
- data/lib/ory-client/api_client.rb +1 -1
- data/lib/ory-client/api_error.rb +1 -1
- data/lib/ory-client/configuration.rb +1 -1
- data/lib/ory-client/models/accept_o_auth2_consent_request.rb +1 -1
- data/lib/ory-client/models/accept_o_auth2_consent_request_session.rb +1 -1
- data/lib/ory-client/models/accept_o_auth2_login_request.rb +1 -1
- data/lib/ory-client/models/active_project_in_console.rb +1 -1
- data/lib/ory-client/models/authenticator_assurance_level.rb +1 -1
- data/lib/ory-client/models/batch_patch_identities_response.rb +1 -1
- data/lib/ory-client/models/check_opl_syntax_result.rb +1 -1
- data/lib/ory-client/models/check_permission_result.rb +1 -1
- data/lib/ory-client/models/cloud_account.rb +1 -1
- data/lib/ory-client/models/continue_with.rb +1 -1
- data/lib/ory-client/models/continue_with_set_ory_session_token.rb +1 -1
- data/lib/ory-client/models/continue_with_verification_ui.rb +1 -1
- data/lib/ory-client/models/continue_with_verification_ui_flow.rb +1 -1
- data/lib/ory-client/models/courier_message_status.rb +1 -1
- data/lib/ory-client/models/courier_message_type.rb +1 -1
- data/lib/ory-client/models/create_custom_domain_body.rb +1 -1
- data/lib/ory-client/models/create_identity_body.rb +1 -1
- data/lib/ory-client/models/create_json_web_key_set.rb +1 -1
- data/lib/ory-client/models/create_project_api_key_request.rb +1 -1
- data/lib/ory-client/models/create_project_body.rb +1 -1
- data/lib/ory-client/models/create_project_branding.rb +1 -1
- data/lib/ory-client/models/create_project_invite.rb +1 -1
- data/lib/ory-client/models/create_project_invites_response.rb +1 -1
- data/lib/ory-client/models/create_recovery_code_for_identity_body.rb +1 -1
- data/lib/ory-client/models/create_recovery_link_for_identity_body.rb +1 -1
- data/lib/ory-client/models/create_relationship_body.rb +1 -1
- data/lib/ory-client/models/create_subscription_body.rb +24 -2
- data/lib/ory-client/models/custom_domain.rb +1 -1
- data/lib/ory-client/models/delete_my_sessions_count.rb +1 -1
- data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +1 -1
- data/lib/ory-client/models/error_browser_location_change_required.rb +1 -1
- data/lib/ory-client/models/error_flow_replaced.rb +1 -1
- data/lib/ory-client/models/error_generic.rb +1 -1
- data/lib/ory-client/models/error_o_auth2.rb +1 -1
- data/lib/ory-client/models/expanded_permission_tree.rb +1 -1
- data/lib/ory-client/models/flow_error.rb +1 -1
- data/lib/ory-client/models/generic_error.rb +1 -1
- data/lib/ory-client/models/generic_error_content.rb +1 -1
- data/lib/ory-client/models/generic_usage.rb +1 -1
- data/lib/ory-client/models/get_managed_identity_schema_location.rb +1 -1
- data/lib/ory-client/models/get_project_metrics_response.rb +228 -0
- data/lib/ory-client/models/get_version200_response.rb +1 -1
- data/lib/ory-client/models/health_not_ready_status.rb +1 -1
- data/lib/ory-client/models/health_status.rb +1 -1
- data/lib/ory-client/models/identity.rb +1 -1
- data/lib/ory-client/models/identity_credentials.rb +1 -1
- data/lib/ory-client/models/identity_credentials_oidc.rb +1 -1
- data/lib/ory-client/models/identity_credentials_oidc_provider.rb +1 -1
- data/lib/ory-client/models/identity_credentials_password.rb +1 -1
- data/lib/ory-client/models/identity_credentials_type.rb +1 -1
- data/lib/ory-client/models/identity_patch.rb +1 -1
- data/lib/ory-client/models/identity_patch_response.rb +1 -1
- data/lib/ory-client/models/identity_schema_container.rb +1 -1
- data/lib/ory-client/models/identity_schema_preset.rb +1 -1
- data/lib/ory-client/models/identity_state.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_oidc.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_oidc_config.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_oidc_config_provider.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_password.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_password_config.rb +1 -1
- data/lib/ory-client/models/internal_get_project_branding_body.rb +1 -1
- data/lib/ory-client/models/internal_is_owner_for_project_by_slug_body.rb +1 -1
- data/lib/ory-client/models/internal_is_owner_for_project_by_slug_response.rb +1 -1
- data/lib/ory-client/models/internal_provision_mock_subscription.rb +29 -2
- data/lib/ory-client/models/introspected_o_auth2_token.rb +1 -1
- data/lib/ory-client/models/is_owner_for_project_by_slug.rb +1 -1
- data/lib/ory-client/models/is_ready200_response.rb +1 -1
- data/lib/ory-client/models/is_ready503_response.rb +1 -1
- data/lib/ory-client/models/json_patch.rb +1 -1
- data/lib/ory-client/models/json_web_key.rb +1 -1
- data/lib/ory-client/models/json_web_key_set.rb +1 -1
- data/lib/ory-client/models/keto_namespace.rb +1 -1
- data/lib/ory-client/models/login_flow.rb +1 -1
- data/lib/ory-client/models/logout_flow.rb +1 -1
- data/lib/ory-client/models/managed_identity_schema.rb +1 -1
- data/lib/ory-client/models/managed_identity_schema_validation_result.rb +1 -1
- data/lib/ory-client/models/message.rb +1 -1
- data/lib/ory-client/models/message_dispatch.rb +1 -1
- data/lib/ory-client/models/metrics_datapoint.rb +241 -0
- data/lib/ory-client/models/namespace.rb +1 -1
- data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
- data/lib/ory-client/models/normalized_project.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_hook.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +46 -2
- data/lib/ory-client/models/o_auth2_client.rb +1 -1
- data/lib/ory-client/models/o_auth2_client_token_lifespans.rb +1 -1
- data/lib/ory-client/models/o_auth2_consent_request.rb +1 -1
- data/lib/ory-client/models/o_auth2_consent_request_open_id_connect_context.rb +1 -1
- data/lib/ory-client/models/o_auth2_consent_session.rb +1 -1
- data/lib/ory-client/models/o_auth2_consent_session_expires_at.rb +1 -1
- data/lib/ory-client/models/o_auth2_login_request.rb +1 -1
- data/lib/ory-client/models/o_auth2_logout_request.rb +1 -1
- data/lib/ory-client/models/o_auth2_redirect_to.rb +1 -1
- data/lib/ory-client/models/o_auth2_token_exchange.rb +1 -1
- data/lib/ory-client/models/oidc_configuration.rb +1 -1
- data/lib/ory-client/models/oidc_user_info.rb +1 -1
- data/lib/ory-client/models/pagination.rb +1 -1
- data/lib/ory-client/models/pagination_headers.rb +1 -1
- data/lib/ory-client/models/parse_error.rb +1 -1
- data/lib/ory-client/models/patch_identities_body.rb +1 -1
- data/lib/ory-client/models/perform_native_logout_body.rb +1 -1
- data/lib/ory-client/models/plan.rb +1 -1
- data/lib/ory-client/models/plan_details.rb +1 -1
- data/lib/ory-client/models/post_check_permission_body.rb +1 -1
- data/lib/ory-client/models/post_check_permission_or_error_body.rb +1 -1
- data/lib/ory-client/models/project.rb +1 -1
- data/lib/ory-client/models/project_api_key.rb +1 -1
- data/lib/ory-client/models/project_branding.rb +1 -1
- data/lib/ory-client/models/project_branding_colors.rb +1 -1
- data/lib/ory-client/models/project_branding_theme.rb +1 -1
- data/lib/ory-client/models/project_host.rb +1 -1
- data/lib/ory-client/models/project_invite.rb +1 -1
- data/lib/ory-client/models/project_metadata.rb +1 -1
- data/lib/ory-client/models/project_service_identity.rb +1 -1
- data/lib/ory-client/models/project_service_o_auth2.rb +1 -1
- data/lib/ory-client/models/project_service_permission.rb +1 -1
- data/lib/ory-client/models/project_services.rb +1 -1
- data/lib/ory-client/models/quota_usage.rb +4 -4
- data/lib/ory-client/models/recovery_code_for_identity.rb +1 -1
- data/lib/ory-client/models/recovery_flow.rb +1 -1
- data/lib/ory-client/models/recovery_flow_state.rb +1 -1
- data/lib/ory-client/models/recovery_identity_address.rb +1 -1
- data/lib/ory-client/models/recovery_link_for_identity.rb +1 -1
- data/lib/ory-client/models/registration_flow.rb +1 -1
- data/lib/ory-client/models/reject_o_auth2_request.rb +1 -1
- data/lib/ory-client/models/relation_query.rb +1 -1
- data/lib/ory-client/models/relationship.rb +1 -1
- data/lib/ory-client/models/relationship_namespaces.rb +1 -1
- data/lib/ory-client/models/relationship_patch.rb +1 -1
- data/lib/ory-client/models/relationships.rb +1 -1
- data/lib/ory-client/models/schema_patch.rb +1 -1
- data/lib/ory-client/models/self_service_flow_expired_error.rb +1 -1
- data/lib/ory-client/models/session.rb +1 -1
- data/lib/ory-client/models/session_authentication_method.rb +15 -5
- data/lib/ory-client/models/session_device.rb +1 -1
- data/lib/ory-client/models/set_active_project_in_console_body.rb +1 -1
- data/lib/ory-client/models/set_custom_domain_body.rb +1 -1
- data/lib/ory-client/models/set_project.rb +1 -1
- data/lib/ory-client/models/set_project_branding_theme_body.rb +1 -1
- data/lib/ory-client/models/settings_flow.rb +1 -1
- data/lib/ory-client/models/settings_flow_state.rb +1 -1
- data/lib/ory-client/models/source_position.rb +1 -1
- data/lib/ory-client/models/stripe_customer.rb +1 -1
- data/lib/ory-client/models/subject_set.rb +1 -1
- data/lib/ory-client/models/subscription.rb +29 -2
- data/lib/ory-client/models/successful_code_exchange_response.rb +1 -1
- data/lib/ory-client/models/successful_native_login.rb +1 -1
- data/lib/ory-client/models/successful_native_registration.rb +1 -1
- data/lib/ory-client/models/successful_project_update.rb +1 -1
- data/lib/ory-client/models/token_pagination.rb +1 -1
- data/lib/ory-client/models/token_pagination_headers.rb +1 -1
- data/lib/ory-client/models/token_pagination_request_parameters.rb +1 -1
- data/lib/ory-client/models/token_pagination_response_headers.rb +1 -1
- data/lib/ory-client/models/trust_o_auth2_jwt_grant_issuer.rb +1 -1
- data/lib/ory-client/models/trusted_o_auth2_jwt_grant_issuer.rb +1 -1
- data/lib/ory-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb +1 -1
- data/lib/ory-client/models/ui_container.rb +1 -1
- data/lib/ory-client/models/ui_node.rb +1 -1
- data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_image_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_input_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_meta.rb +1 -1
- data/lib/ory-client/models/ui_node_script_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
- data/lib/ory-client/models/ui_text.rb +1 -1
- data/lib/ory-client/models/update_identity_body.rb +1 -1
- data/lib/ory-client/models/update_login_flow_body.rb +1 -1
- data/lib/ory-client/models/update_login_flow_with_lookup_secret_method.rb +1 -1
- data/lib/ory-client/models/update_login_flow_with_oidc_method.rb +2 -2
- data/lib/ory-client/models/update_login_flow_with_password_method.rb +1 -1
- data/lib/ory-client/models/update_login_flow_with_totp_method.rb +1 -1
- data/lib/ory-client/models/update_login_flow_with_web_authn_method.rb +1 -1
- data/lib/ory-client/models/update_recovery_flow_body.rb +1 -1
- data/lib/ory-client/models/update_recovery_flow_with_code_method.rb +1 -1
- data/lib/ory-client/models/update_recovery_flow_with_link_method.rb +1 -1
- data/lib/ory-client/models/update_registration_flow_body.rb +1 -1
- data/lib/ory-client/models/update_registration_flow_with_oidc_method.rb +2 -2
- data/lib/ory-client/models/update_registration_flow_with_password_method.rb +1 -1
- data/lib/ory-client/models/update_registration_flow_with_web_authn_method.rb +1 -1
- data/lib/ory-client/models/update_settings_flow_body.rb +1 -1
- data/lib/ory-client/models/update_settings_flow_with_lookup_method.rb +1 -1
- data/lib/ory-client/models/update_settings_flow_with_oidc_method.rb +2 -2
- data/lib/ory-client/models/update_settings_flow_with_password_method.rb +1 -1
- data/lib/ory-client/models/update_settings_flow_with_profile_method.rb +1 -1
- data/lib/ory-client/models/update_settings_flow_with_totp_method.rb +1 -1
- data/lib/ory-client/models/update_settings_flow_with_web_authn_method.rb +1 -1
- data/lib/ory-client/models/update_subscription_body.rb +1 -1
- data/lib/ory-client/models/update_verification_flow_body.rb +1 -1
- data/lib/ory-client/models/update_verification_flow_with_code_method.rb +1 -1
- data/lib/ory-client/models/update_verification_flow_with_link_method.rb +36 -2
- data/lib/ory-client/models/usage.rb +1 -1
- data/lib/ory-client/models/verifiable_identity_address.rb +1 -1
- data/lib/ory-client/models/verification_flow.rb +1 -1
- data/lib/ory-client/models/verification_flow_state.rb +1 -1
- data/lib/ory-client/models/version.rb +1 -1
- data/lib/ory-client/models/warning.rb +1 -1
- data/lib/ory-client/version.rb +2 -2
- data/lib/ory-client.rb +3 -1
- data/ory-client.gemspec +1 -1
- data/spec/api/courier_api_spec.rb +1 -1
- data/spec/api/frontend_api_spec.rb +2 -1
- data/spec/api/identity_api_spec.rb +2 -2
- data/spec/api/jwk_api_spec.rb +1 -1
- data/spec/api/metadata_api_spec.rb +1 -1
- data/spec/api/o_auth2_api_spec.rb +1 -1
- data/spec/api/oidc_api_spec.rb +1 -1
- data/spec/api/permission_api_spec.rb +1 -1
- data/spec/api/project_api_spec.rb +16 -1
- data/spec/api/relationship_api_spec.rb +1 -1
- data/spec/api/wellknown_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/accept_o_auth2_consent_request_session_spec.rb +1 -1
- data/spec/models/accept_o_auth2_consent_request_spec.rb +1 -1
- data/spec/models/accept_o_auth2_login_request_spec.rb +1 -1
- data/spec/models/active_project_in_console_spec.rb +1 -1
- data/spec/models/authenticator_assurance_level_spec.rb +1 -1
- data/spec/models/batch_patch_identities_response_spec.rb +1 -1
- data/spec/models/check_opl_syntax_result_spec.rb +1 -1
- data/spec/models/check_permission_result_spec.rb +1 -1
- data/spec/models/cloud_account_spec.rb +1 -1
- data/spec/models/continue_with_set_ory_session_token_spec.rb +1 -1
- data/spec/models/continue_with_spec.rb +1 -1
- data/spec/models/continue_with_verification_ui_flow_spec.rb +1 -1
- data/spec/models/continue_with_verification_ui_spec.rb +1 -1
- data/spec/models/courier_message_status_spec.rb +1 -1
- data/spec/models/courier_message_type_spec.rb +1 -1
- data/spec/models/create_custom_domain_body_spec.rb +1 -1
- data/spec/models/create_identity_body_spec.rb +1 -1
- data/spec/models/create_json_web_key_set_spec.rb +1 -1
- data/spec/models/create_project_api_key_request_spec.rb +1 -1
- data/spec/models/create_project_body_spec.rb +1 -1
- data/spec/models/create_project_branding_spec.rb +1 -1
- data/spec/models/create_project_invite_spec.rb +1 -1
- data/spec/models/create_project_invites_response_spec.rb +1 -1
- data/spec/models/create_recovery_code_for_identity_body_spec.rb +1 -1
- data/spec/models/create_recovery_link_for_identity_body_spec.rb +1 -1
- data/spec/models/create_relationship_body_spec.rb +1 -1
- data/spec/models/create_subscription_body_spec.rb +11 -1
- data/spec/models/custom_domain_spec.rb +1 -1
- data/spec/models/delete_my_sessions_count_spec.rb +1 -1
- data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +1 -1
- data/spec/models/error_browser_location_change_required_spec.rb +1 -1
- data/spec/models/error_flow_replaced_spec.rb +1 -1
- data/spec/models/error_generic_spec.rb +1 -1
- data/spec/models/error_o_auth2_spec.rb +1 -1
- data/spec/models/expanded_permission_tree_spec.rb +1 -1
- data/spec/models/flow_error_spec.rb +1 -1
- data/spec/models/generic_error_content_spec.rb +1 -1
- data/spec/models/generic_error_spec.rb +1 -1
- data/spec/models/generic_usage_spec.rb +1 -1
- data/spec/models/get_managed_identity_schema_location_spec.rb +1 -1
- data/spec/models/get_project_metrics_response_spec.rb +34 -0
- data/spec/models/get_version200_response_spec.rb +1 -1
- data/spec/models/health_not_ready_status_spec.rb +1 -1
- data/spec/models/health_status_spec.rb +1 -1
- data/spec/models/identity_credentials_oidc_provider_spec.rb +1 -1
- data/spec/models/identity_credentials_oidc_spec.rb +1 -1
- data/spec/models/identity_credentials_password_spec.rb +1 -1
- data/spec/models/identity_credentials_spec.rb +1 -1
- data/spec/models/identity_credentials_type_spec.rb +1 -1
- data/spec/models/identity_patch_response_spec.rb +1 -1
- data/spec/models/identity_patch_spec.rb +1 -1
- data/spec/models/identity_schema_container_spec.rb +1 -1
- data/spec/models/identity_schema_preset_spec.rb +1 -1
- data/spec/models/identity_spec.rb +1 -1
- data/spec/models/identity_state_spec.rb +1 -1
- data/spec/models/identity_with_credentials_oidc_config_provider_spec.rb +1 -1
- data/spec/models/identity_with_credentials_oidc_config_spec.rb +1 -1
- data/spec/models/identity_with_credentials_oidc_spec.rb +1 -1
- data/spec/models/identity_with_credentials_password_config_spec.rb +1 -1
- data/spec/models/identity_with_credentials_password_spec.rb +1 -1
- data/spec/models/identity_with_credentials_spec.rb +1 -1
- data/spec/models/internal_get_project_branding_body_spec.rb +1 -1
- data/spec/models/internal_is_owner_for_project_by_slug_body_spec.rb +1 -1
- data/spec/models/internal_is_owner_for_project_by_slug_response_spec.rb +1 -1
- data/spec/models/internal_provision_mock_subscription_spec.rb +11 -1
- data/spec/models/introspected_o_auth2_token_spec.rb +1 -1
- data/spec/models/is_owner_for_project_by_slug_spec.rb +1 -1
- data/spec/models/is_ready200_response_spec.rb +1 -1
- data/spec/models/is_ready503_response_spec.rb +1 -1
- data/spec/models/json_patch_spec.rb +1 -1
- data/spec/models/json_web_key_set_spec.rb +1 -1
- data/spec/models/json_web_key_spec.rb +1 -1
- data/spec/models/keto_namespace_spec.rb +1 -1
- data/spec/models/login_flow_spec.rb +1 -1
- data/spec/models/logout_flow_spec.rb +1 -1
- data/spec/models/managed_identity_schema_spec.rb +1 -1
- data/spec/models/managed_identity_schema_validation_result_spec.rb +1 -1
- data/spec/models/message_dispatch_spec.rb +1 -1
- data/spec/models/message_spec.rb +1 -1
- data/spec/models/metrics_datapoint_spec.rb +40 -0
- data/spec/models/namespace_spec.rb +1 -1
- data/spec/models/needs_privileged_session_error_spec.rb +1 -1
- data/spec/models/normalized_project_revision_hook_spec.rb +1 -1
- data/spec/models/normalized_project_revision_identity_schema_spec.rb +1 -1
- data/spec/models/normalized_project_revision_spec.rb +1 -1
- data/spec/models/normalized_project_revision_third_party_provider_spec.rb +11 -1
- data/spec/models/normalized_project_spec.rb +1 -1
- data/spec/models/o_auth2_client_spec.rb +1 -1
- data/spec/models/o_auth2_client_token_lifespans_spec.rb +1 -1
- data/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb +1 -1
- data/spec/models/o_auth2_consent_request_spec.rb +1 -1
- data/spec/models/o_auth2_consent_session_expires_at_spec.rb +1 -1
- data/spec/models/o_auth2_consent_session_spec.rb +1 -1
- data/spec/models/o_auth2_login_request_spec.rb +1 -1
- data/spec/models/o_auth2_logout_request_spec.rb +1 -1
- data/spec/models/o_auth2_redirect_to_spec.rb +1 -1
- data/spec/models/o_auth2_token_exchange_spec.rb +1 -1
- data/spec/models/oidc_configuration_spec.rb +1 -1
- data/spec/models/oidc_user_info_spec.rb +1 -1
- data/spec/models/pagination_headers_spec.rb +1 -1
- data/spec/models/pagination_spec.rb +1 -1
- data/spec/models/parse_error_spec.rb +1 -1
- data/spec/models/patch_identities_body_spec.rb +1 -1
- data/spec/models/perform_native_logout_body_spec.rb +1 -1
- data/spec/models/plan_details_spec.rb +1 -1
- data/spec/models/plan_spec.rb +1 -1
- data/spec/models/post_check_permission_body_spec.rb +1 -1
- data/spec/models/post_check_permission_or_error_body_spec.rb +1 -1
- data/spec/models/project_api_key_spec.rb +1 -1
- data/spec/models/project_branding_colors_spec.rb +1 -1
- data/spec/models/project_branding_spec.rb +1 -1
- data/spec/models/project_branding_theme_spec.rb +1 -1
- data/spec/models/project_host_spec.rb +1 -1
- data/spec/models/project_invite_spec.rb +1 -1
- data/spec/models/project_metadata_spec.rb +1 -1
- data/spec/models/project_service_identity_spec.rb +1 -1
- data/spec/models/project_service_o_auth2_spec.rb +1 -1
- data/spec/models/project_service_permission_spec.rb +1 -1
- data/spec/models/project_services_spec.rb +1 -1
- data/spec/models/project_spec.rb +1 -1
- data/spec/models/quota_usage_spec.rb +2 -2
- data/spec/models/recovery_code_for_identity_spec.rb +1 -1
- data/spec/models/recovery_flow_spec.rb +1 -1
- data/spec/models/recovery_flow_state_spec.rb +1 -1
- data/spec/models/recovery_identity_address_spec.rb +1 -1
- data/spec/models/recovery_link_for_identity_spec.rb +1 -1
- data/spec/models/registration_flow_spec.rb +1 -1
- data/spec/models/reject_o_auth2_request_spec.rb +1 -1
- data/spec/models/relation_query_spec.rb +1 -1
- data/spec/models/relationship_namespaces_spec.rb +1 -1
- data/spec/models/relationship_patch_spec.rb +1 -1
- data/spec/models/relationship_spec.rb +1 -1
- data/spec/models/relationships_spec.rb +1 -1
- data/spec/models/schema_patch_spec.rb +1 -1
- data/spec/models/self_service_flow_expired_error_spec.rb +1 -1
- data/spec/models/session_authentication_method_spec.rb +7 -1
- data/spec/models/session_device_spec.rb +1 -1
- data/spec/models/session_spec.rb +1 -1
- data/spec/models/set_active_project_in_console_body_spec.rb +1 -1
- data/spec/models/set_custom_domain_body_spec.rb +1 -1
- data/spec/models/set_project_branding_theme_body_spec.rb +1 -1
- data/spec/models/set_project_spec.rb +1 -1
- data/spec/models/settings_flow_spec.rb +1 -1
- data/spec/models/settings_flow_state_spec.rb +1 -1
- data/spec/models/source_position_spec.rb +1 -1
- data/spec/models/stripe_customer_spec.rb +1 -1
- data/spec/models/subject_set_spec.rb +1 -1
- data/spec/models/subscription_spec.rb +11 -1
- data/spec/models/successful_code_exchange_response_spec.rb +1 -1
- data/spec/models/successful_native_login_spec.rb +1 -1
- data/spec/models/successful_native_registration_spec.rb +1 -1
- data/spec/models/successful_project_update_spec.rb +1 -1
- data/spec/models/token_pagination_headers_spec.rb +1 -1
- data/spec/models/token_pagination_request_parameters_spec.rb +1 -1
- data/spec/models/token_pagination_response_headers_spec.rb +1 -1
- data/spec/models/token_pagination_spec.rb +1 -1
- data/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb +1 -1
- data/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb +1 -1
- data/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb +1 -1
- data/spec/models/ui_container_spec.rb +1 -1
- data/spec/models/ui_node_anchor_attributes_spec.rb +1 -1
- data/spec/models/ui_node_attributes_spec.rb +1 -1
- data/spec/models/ui_node_image_attributes_spec.rb +1 -1
- data/spec/models/ui_node_input_attributes_spec.rb +1 -1
- data/spec/models/ui_node_meta_spec.rb +1 -1
- data/spec/models/ui_node_script_attributes_spec.rb +1 -1
- data/spec/models/ui_node_spec.rb +1 -1
- data/spec/models/ui_node_text_attributes_spec.rb +1 -1
- data/spec/models/ui_text_spec.rb +1 -1
- data/spec/models/update_identity_body_spec.rb +1 -1
- data/spec/models/update_login_flow_body_spec.rb +1 -1
- data/spec/models/update_login_flow_with_lookup_secret_method_spec.rb +1 -1
- data/spec/models/update_login_flow_with_oidc_method_spec.rb +1 -1
- data/spec/models/update_login_flow_with_password_method_spec.rb +1 -1
- data/spec/models/update_login_flow_with_totp_method_spec.rb +1 -1
- data/spec/models/update_login_flow_with_web_authn_method_spec.rb +1 -1
- data/spec/models/update_recovery_flow_body_spec.rb +1 -1
- data/spec/models/update_recovery_flow_with_code_method_spec.rb +1 -1
- data/spec/models/update_recovery_flow_with_link_method_spec.rb +1 -1
- data/spec/models/update_registration_flow_body_spec.rb +1 -1
- data/spec/models/update_registration_flow_with_oidc_method_spec.rb +1 -1
- data/spec/models/update_registration_flow_with_password_method_spec.rb +1 -1
- data/spec/models/update_registration_flow_with_web_authn_method_spec.rb +1 -1
- data/spec/models/update_settings_flow_body_spec.rb +1 -1
- data/spec/models/update_settings_flow_with_lookup_method_spec.rb +1 -1
- data/spec/models/update_settings_flow_with_oidc_method_spec.rb +1 -1
- data/spec/models/update_settings_flow_with_password_method_spec.rb +1 -1
- data/spec/models/update_settings_flow_with_profile_method_spec.rb +1 -1
- data/spec/models/update_settings_flow_with_totp_method_spec.rb +1 -1
- data/spec/models/update_settings_flow_with_web_authn_method_spec.rb +1 -1
- data/spec/models/update_subscription_body_spec.rb +1 -1
- data/spec/models/update_verification_flow_body_spec.rb +1 -1
- data/spec/models/update_verification_flow_with_code_method_spec.rb +1 -1
- data/spec/models/update_verification_flow_with_link_method_spec.rb +5 -1
- data/spec/models/usage_spec.rb +1 -1
- data/spec/models/verifiable_identity_address_spec.rb +1 -1
- data/spec/models/verification_flow_spec.rb +1 -1
- data/spec/models/verification_flow_state_spec.rb +1 -1
- data/spec/models/version_spec.rb +1 -1
- data/spec/models/warning_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/bin/racc +27 -0
- data/vendor/bundle/ruby/2.5.0/cache/jaro_winkler-1.5.6.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/parser-3.2.2.3.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/racc-1.7.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.5/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/gem_make.out +6 -6
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.6/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/racc-1.7.0/gem_make.out +17 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/racc-1.7.0/mkmf.log +56 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/racc-1.7.0/racc/cparse.so +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.6/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.6/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler/.sitearchdir.-.jaro_winkler.time +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/adj_matrix.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/codepoints.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/jaro.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/jaro_winkler.c +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/jaro_winkler.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/lib/jaro_winkler/version.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/macruby.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby18.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby19.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby20.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby21.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby22.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby23.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby24.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby25.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby26.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby27.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby30.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby31.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby32.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby33.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/rubymotion.rb +3 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/version.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/parser.gemspec +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.6/ext/psych/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/COPYING +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ChangeLog +846 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/README.ja.rdoc +94 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/README.rdoc +79 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/TODO +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/bin/racc +320 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/en/NEWS.en.rdoc +282 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/en/grammar.en.rdoc +226 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/en/grammar2.en.rdoc +219 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/ja/NEWS.ja.rdoc +307 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/ja/command.ja.html +94 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/ja/debug.ja.rdoc +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/ja/grammar.ja.rdoc +348 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/ja/index.ja.html +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/ja/parser.ja.rdoc +125 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/doc/ja/usage.ja.html +414 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ext/racc/MANIFEST +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ext/racc/cparse/.sitearchdir.-.racc.time +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ext/racc/cparse/Makefile +264 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ext/racc/cparse/cparse.c +861 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ext/racc/cparse/cparse.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ext/racc/cparse/cparse.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/ext/racc/cparse/extconf.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/compat.rb +33 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/cparse.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/debugflags.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/exception.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/grammar.rb +1114 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/grammarfileparser.rb +561 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/info.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/iset.rb +92 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/logfilegenerator.rb +212 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/parser-text.rb +658 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/parser.rb +632 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/parserfilegenerator.rb +470 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/sourcetext.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/state.rb +972 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/statetransitiontable.rb +311 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc/static.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/racc-1.7.0/lib/racc.rb +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.6/ext/stringio/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/specifications/{jaro_winkler-1.5.5.gemspec → jaro_winkler-1.5.6.gemspec} +4 -4
- data/vendor/bundle/ruby/2.5.0/specifications/{parser-3.2.2.1.gemspec → parser-3.2.2.3.gemspec} +7 -7
- data/vendor/bundle/ruby/2.5.0/specifications/racc-1.7.0.gemspec +27 -0
- metadata +166 -111
- data/vendor/bundle/ruby/2.5.0/cache/jaro_winkler-1.5.5.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/parser-3.2.2.1.gem +0 -0
- /data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/gem.build_complete +0 -0
- /data/vendor/bundle/ruby/2.5.0/{gems/jaro_winkler-1.5.5/ext/jaro_winkler/.sitearchdir.-.jaro_winkler.time → extensions/x86_64-linux/2.5.0/racc-1.7.0/gem.build_complete} +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/adj_matrix.c +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/adj_matrix.h +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/codepoints.c +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/codepoints.h +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/extconf.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/jaro.c +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/ext/jaro_winkler/jaro.h +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/lib/jaro_winkler/adjusting_table.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/lib/jaro_winkler/jaro_winkler_pure.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{jaro_winkler-1.5.5 → jaro_winkler-1.5.6}/lib/jaro_winkler.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/bin/ruby-parse +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/bin/ruby-rewrite +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/gauntlet_parser.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/all.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ast/node.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ast/processor.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/base.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/builders/default.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/clobbering_error.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/color.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/context.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/current.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/current_arg_stack.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/deprecation.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/diagnostic/engine.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/diagnostic.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer/dedenter.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer/explanation.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer/literal.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer/stack_state.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer-F0.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer-F1.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/lexer-strings.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/max_numparam_stack.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/messages.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/meta.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/rewriter.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/ruby28.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/runner/ruby_parse.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/runner/ruby_rewrite.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/runner.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/buffer.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/comment/associator.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/comment.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/collection.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/condition.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/constant.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/definition.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/for.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/heredoc.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/index.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/keyword.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/method_definition.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/objc_kwarg.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/operator.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/rescue_body.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/send.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/ternary.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map/variable.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/map.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/range.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/rewriter/action.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/rewriter.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/tree_rewriter/action.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/source/tree_rewriter.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/static_environment.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/syntax_error.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/tree_rewriter.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser/variables_stack.rb +0 -0
- /data/vendor/bundle/ruby/2.5.0/gems/{parser-3.2.2.1 → parser-3.2.2.3}/lib/parser.rb +0 -0
@@ -0,0 +1,658 @@
|
|
1
|
+
module Racc
|
2
|
+
PARSER_TEXT = <<'__end_of_file__'
|
3
|
+
# frozen_string_literal: false
|
4
|
+
#--
|
5
|
+
# Copyright (c) 1999-2006 Minero Aoki
|
6
|
+
#
|
7
|
+
# This program is free software.
|
8
|
+
# You can distribute/modify this program under the same terms of ruby.
|
9
|
+
#
|
10
|
+
# As a special exception, when this code is copied by Racc
|
11
|
+
# into a Racc output file, you may use that output file
|
12
|
+
# without restriction.
|
13
|
+
#++
|
14
|
+
|
15
|
+
unless $".find {|p| p.end_with?('/racc/info.rb')}
|
16
|
+
$".push 'racc/info.rb'
|
17
|
+
#--
|
18
|
+
#
|
19
|
+
#
|
20
|
+
#
|
21
|
+
# Copyright (c) 1999-2006 Minero Aoki
|
22
|
+
#
|
23
|
+
# This program is free software.
|
24
|
+
# You can distribute/modify this program under the same terms of ruby.
|
25
|
+
# see the file "COPYING".
|
26
|
+
#
|
27
|
+
#++
|
28
|
+
|
29
|
+
module Racc
|
30
|
+
VERSION = '1.6.2'
|
31
|
+
Version = VERSION
|
32
|
+
Copyright = 'Copyright (c) 1999-2006 Minero Aoki'
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
|
38
|
+
unless defined?(NotImplementedError)
|
39
|
+
NotImplementedError = NotImplementError # :nodoc:
|
40
|
+
end
|
41
|
+
|
42
|
+
module Racc
|
43
|
+
class ParseError < StandardError; end
|
44
|
+
end
|
45
|
+
unless defined?(::ParseError)
|
46
|
+
ParseError = Racc::ParseError # :nodoc:
|
47
|
+
end
|
48
|
+
|
49
|
+
# Racc is a LALR(1) parser generator.
|
50
|
+
# It is written in Ruby itself, and generates Ruby programs.
|
51
|
+
#
|
52
|
+
# == Command-line Reference
|
53
|
+
#
|
54
|
+
# racc [-o<var>filename</var>] [--output-file=<var>filename</var>]
|
55
|
+
# [-e<var>rubypath</var>] [--executable=<var>rubypath</var>]
|
56
|
+
# [-v] [--verbose]
|
57
|
+
# [-O<var>filename</var>] [--log-file=<var>filename</var>]
|
58
|
+
# [-g] [--debug]
|
59
|
+
# [-E] [--embedded]
|
60
|
+
# [-l] [--no-line-convert]
|
61
|
+
# [-c] [--line-convert-all]
|
62
|
+
# [-a] [--no-omit-actions]
|
63
|
+
# [-C] [--check-only]
|
64
|
+
# [-S] [--output-status]
|
65
|
+
# [--version] [--copyright] [--help] <var>grammarfile</var>
|
66
|
+
#
|
67
|
+
# [+grammarfile+]
|
68
|
+
# Racc grammar file. Any extension is permitted.
|
69
|
+
# [-o+outfile+, --output-file=+outfile+]
|
70
|
+
# A filename for output. default is <+filename+>.tab.rb
|
71
|
+
# [-O+filename+, --log-file=+filename+]
|
72
|
+
# Place logging output in file +filename+.
|
73
|
+
# Default log file name is <+filename+>.output.
|
74
|
+
# [-e+rubypath+, --executable=+rubypath+]
|
75
|
+
# output executable file(mode 755). where +path+ is the Ruby interpreter.
|
76
|
+
# [-v, --verbose]
|
77
|
+
# verbose mode. create +filename+.output file, like yacc's y.output file.
|
78
|
+
# [-g, --debug]
|
79
|
+
# add debug code to parser class. To display debuggin information,
|
80
|
+
# use this '-g' option and set @yydebug true in parser class.
|
81
|
+
# [-E, --embedded]
|
82
|
+
# Output parser which doesn't need runtime files (racc/parser.rb).
|
83
|
+
# [-C, --check-only]
|
84
|
+
# Check syntax of racc grammar file and quit.
|
85
|
+
# [-S, --output-status]
|
86
|
+
# Print messages time to time while compiling.
|
87
|
+
# [-l, --no-line-convert]
|
88
|
+
# turns off line number converting.
|
89
|
+
# [-c, --line-convert-all]
|
90
|
+
# Convert line number of actions, inner, header and footer.
|
91
|
+
# [-a, --no-omit-actions]
|
92
|
+
# Call all actions, even if an action is empty.
|
93
|
+
# [--version]
|
94
|
+
# print Racc version and quit.
|
95
|
+
# [--copyright]
|
96
|
+
# Print copyright and quit.
|
97
|
+
# [--help]
|
98
|
+
# Print usage and quit.
|
99
|
+
#
|
100
|
+
# == Generating Parser Using Racc
|
101
|
+
#
|
102
|
+
# To compile Racc grammar file, simply type:
|
103
|
+
#
|
104
|
+
# $ racc parse.y
|
105
|
+
#
|
106
|
+
# This creates Ruby script file "parse.tab.y". The -o option can change the output filename.
|
107
|
+
#
|
108
|
+
# == Writing A Racc Grammar File
|
109
|
+
#
|
110
|
+
# If you want your own parser, you have to write a grammar file.
|
111
|
+
# A grammar file contains the name of your parser class, grammar for the parser,
|
112
|
+
# user code, and anything else.
|
113
|
+
# When writing a grammar file, yacc's knowledge is helpful.
|
114
|
+
# If you have not used yacc before, Racc is not too difficult.
|
115
|
+
#
|
116
|
+
# Here's an example Racc grammar file.
|
117
|
+
#
|
118
|
+
# class Calcparser
|
119
|
+
# rule
|
120
|
+
# target: exp { print val[0] }
|
121
|
+
#
|
122
|
+
# exp: exp '+' exp
|
123
|
+
# | exp '*' exp
|
124
|
+
# | '(' exp ')'
|
125
|
+
# | NUMBER
|
126
|
+
# end
|
127
|
+
#
|
128
|
+
# Racc grammar files resemble yacc files.
|
129
|
+
# But (of course), this is Ruby code.
|
130
|
+
# yacc's $$ is the 'result', $0, $1... is
|
131
|
+
# an array called 'val', and $-1, $-2... is an array called '_values'.
|
132
|
+
#
|
133
|
+
# See the {Grammar File Reference}[rdoc-ref:lib/racc/rdoc/grammar.en.rdoc] for
|
134
|
+
# more information on grammar files.
|
135
|
+
#
|
136
|
+
# == Parser
|
137
|
+
#
|
138
|
+
# Then you must prepare the parse entry method. There are two types of
|
139
|
+
# parse methods in Racc, Racc::Parser#do_parse and Racc::Parser#yyparse
|
140
|
+
#
|
141
|
+
# Racc::Parser#do_parse is simple.
|
142
|
+
#
|
143
|
+
# It's yyparse() of yacc, and Racc::Parser#next_token is yylex().
|
144
|
+
# This method must returns an array like [TOKENSYMBOL, ITS_VALUE].
|
145
|
+
# EOF is [false, false].
|
146
|
+
# (TOKENSYMBOL is a Ruby symbol (taken from String#intern) by default.
|
147
|
+
# If you want to change this, see the grammar reference.
|
148
|
+
#
|
149
|
+
# Racc::Parser#yyparse is little complicated, but useful.
|
150
|
+
# It does not use Racc::Parser#next_token, instead it gets tokens from any iterator.
|
151
|
+
#
|
152
|
+
# For example, <code>yyparse(obj, :scan)</code> causes
|
153
|
+
# calling +obj#scan+, and you can return tokens by yielding them from +obj#scan+.
|
154
|
+
#
|
155
|
+
# == Debugging
|
156
|
+
#
|
157
|
+
# When debugging, "-v" or/and the "-g" option is helpful.
|
158
|
+
#
|
159
|
+
# "-v" creates verbose log file (.output).
|
160
|
+
# "-g" creates a "Verbose Parser".
|
161
|
+
# Verbose Parser prints the internal status when parsing.
|
162
|
+
# But it's _not_ automatic.
|
163
|
+
# You must use -g option and set +@yydebug+ to +true+ in order to get output.
|
164
|
+
# -g option only creates the verbose parser.
|
165
|
+
#
|
166
|
+
# === Racc reported syntax error.
|
167
|
+
#
|
168
|
+
# Isn't there too many "end"?
|
169
|
+
# grammar of racc file is changed in v0.10.
|
170
|
+
#
|
171
|
+
# Racc does not use '%' mark, while yacc uses huge number of '%' marks..
|
172
|
+
#
|
173
|
+
# === Racc reported "XXXX conflicts".
|
174
|
+
#
|
175
|
+
# Try "racc -v xxxx.y".
|
176
|
+
# It causes producing racc's internal log file, xxxx.output.
|
177
|
+
#
|
178
|
+
# === Generated parsers does not work correctly
|
179
|
+
#
|
180
|
+
# Try "racc -g xxxx.y".
|
181
|
+
# This command let racc generate "debugging parser".
|
182
|
+
# Then set @yydebug=true in your parser.
|
183
|
+
# It produces a working log of your parser.
|
184
|
+
#
|
185
|
+
# == Re-distributing Racc runtime
|
186
|
+
#
|
187
|
+
# A parser, which is created by Racc, requires the Racc runtime module;
|
188
|
+
# racc/parser.rb.
|
189
|
+
#
|
190
|
+
# Ruby 1.8.x comes with Racc runtime module,
|
191
|
+
# you need NOT distribute Racc runtime files.
|
192
|
+
#
|
193
|
+
# If you want to include the Racc runtime module with your parser.
|
194
|
+
# This can be done by using '-E' option:
|
195
|
+
#
|
196
|
+
# $ racc -E -omyparser.rb myparser.y
|
197
|
+
#
|
198
|
+
# This command creates myparser.rb which `includes' Racc runtime.
|
199
|
+
# Only you must do is to distribute your parser file (myparser.rb).
|
200
|
+
#
|
201
|
+
# Note: parser.rb is ruby license, but your parser is not.
|
202
|
+
# Your own parser is completely yours.
|
203
|
+
module Racc
|
204
|
+
|
205
|
+
unless defined?(Racc_No_Extensions)
|
206
|
+
Racc_No_Extensions = false # :nodoc:
|
207
|
+
end
|
208
|
+
|
209
|
+
class Parser
|
210
|
+
|
211
|
+
Racc_Runtime_Version = ::Racc::VERSION
|
212
|
+
Racc_Runtime_Core_Version_R = ::Racc::VERSION
|
213
|
+
|
214
|
+
begin
|
215
|
+
if Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
|
216
|
+
require 'jruby'
|
217
|
+
require 'racc/cparse-jruby.jar'
|
218
|
+
com.headius.racc.Cparse.new.load(JRuby.runtime, false)
|
219
|
+
else
|
220
|
+
require 'racc/cparse'
|
221
|
+
end
|
222
|
+
|
223
|
+
unless new.respond_to?(:_racc_do_parse_c, true)
|
224
|
+
raise LoadError, 'old cparse.so'
|
225
|
+
end
|
226
|
+
if Racc_No_Extensions
|
227
|
+
raise LoadError, 'selecting ruby version of racc runtime core'
|
228
|
+
end
|
229
|
+
|
230
|
+
Racc_Main_Parsing_Routine = :_racc_do_parse_c # :nodoc:
|
231
|
+
Racc_YY_Parse_Method = :_racc_yyparse_c # :nodoc:
|
232
|
+
Racc_Runtime_Core_Version = Racc_Runtime_Core_Version_C # :nodoc:
|
233
|
+
Racc_Runtime_Type = 'c' # :nodoc:
|
234
|
+
rescue LoadError
|
235
|
+
Racc_Main_Parsing_Routine = :_racc_do_parse_rb
|
236
|
+
Racc_YY_Parse_Method = :_racc_yyparse_rb
|
237
|
+
Racc_Runtime_Core_Version = Racc_Runtime_Core_Version_R
|
238
|
+
Racc_Runtime_Type = 'ruby'
|
239
|
+
end
|
240
|
+
|
241
|
+
def Parser.racc_runtime_type # :nodoc:
|
242
|
+
Racc_Runtime_Type
|
243
|
+
end
|
244
|
+
|
245
|
+
def _racc_setup
|
246
|
+
@yydebug = false unless self.class::Racc_debug_parser
|
247
|
+
@yydebug = false unless defined?(@yydebug)
|
248
|
+
if @yydebug
|
249
|
+
@racc_debug_out = $stderr unless defined?(@racc_debug_out)
|
250
|
+
@racc_debug_out ||= $stderr
|
251
|
+
end
|
252
|
+
arg = self.class::Racc_arg
|
253
|
+
arg[13] = true if arg.size < 14
|
254
|
+
arg
|
255
|
+
end
|
256
|
+
|
257
|
+
def _racc_init_sysvars
|
258
|
+
@racc_state = [0]
|
259
|
+
@racc_tstack = []
|
260
|
+
@racc_vstack = []
|
261
|
+
|
262
|
+
@racc_t = nil
|
263
|
+
@racc_val = nil
|
264
|
+
|
265
|
+
@racc_read_next = true
|
266
|
+
|
267
|
+
@racc_user_yyerror = false
|
268
|
+
@racc_error_status = 0
|
269
|
+
end
|
270
|
+
|
271
|
+
# The entry point of the parser. This method is used with #next_token.
|
272
|
+
# If Racc wants to get token (and its value), calls next_token.
|
273
|
+
#
|
274
|
+
# Example:
|
275
|
+
# def parse
|
276
|
+
# @q = [[1,1],
|
277
|
+
# [2,2],
|
278
|
+
# [3,3],
|
279
|
+
# [false, '$']]
|
280
|
+
# do_parse
|
281
|
+
# end
|
282
|
+
#
|
283
|
+
# def next_token
|
284
|
+
# @q.shift
|
285
|
+
# end
|
286
|
+
class_eval <<~RUBY, __FILE__, __LINE__ + 1
|
287
|
+
def do_parse
|
288
|
+
#{Racc_Main_Parsing_Routine}(_racc_setup(), false)
|
289
|
+
end
|
290
|
+
RUBY
|
291
|
+
|
292
|
+
# The method to fetch next token.
|
293
|
+
# If you use #do_parse method, you must implement #next_token.
|
294
|
+
#
|
295
|
+
# The format of return value is [TOKEN_SYMBOL, VALUE].
|
296
|
+
# +token-symbol+ is represented by Ruby's symbol by default, e.g. :IDENT
|
297
|
+
# for 'IDENT'. ";" (String) for ';'.
|
298
|
+
#
|
299
|
+
# The final symbol (End of file) must be false.
|
300
|
+
def next_token
|
301
|
+
raise NotImplementedError, "#{self.class}\#next_token is not defined"
|
302
|
+
end
|
303
|
+
|
304
|
+
def _racc_do_parse_rb(arg, in_debug)
|
305
|
+
action_table, action_check, action_default, action_pointer,
|
306
|
+
_, _, _, _,
|
307
|
+
_, _, token_table, * = arg
|
308
|
+
|
309
|
+
_racc_init_sysvars
|
310
|
+
tok = act = i = nil
|
311
|
+
|
312
|
+
catch(:racc_end_parse) {
|
313
|
+
while true
|
314
|
+
if i = action_pointer[@racc_state[-1]]
|
315
|
+
if @racc_read_next
|
316
|
+
if @racc_t != 0 # not EOF
|
317
|
+
tok, @racc_val = next_token()
|
318
|
+
unless tok # EOF
|
319
|
+
@racc_t = 0
|
320
|
+
else
|
321
|
+
@racc_t = (token_table[tok] or 1) # error token
|
322
|
+
end
|
323
|
+
racc_read_token(@racc_t, tok, @racc_val) if @yydebug
|
324
|
+
@racc_read_next = false
|
325
|
+
end
|
326
|
+
end
|
327
|
+
i += @racc_t
|
328
|
+
unless i >= 0 and
|
329
|
+
act = action_table[i] and
|
330
|
+
action_check[i] == @racc_state[-1]
|
331
|
+
act = action_default[@racc_state[-1]]
|
332
|
+
end
|
333
|
+
else
|
334
|
+
act = action_default[@racc_state[-1]]
|
335
|
+
end
|
336
|
+
while act = _racc_evalact(act, arg)
|
337
|
+
;
|
338
|
+
end
|
339
|
+
end
|
340
|
+
}
|
341
|
+
end
|
342
|
+
|
343
|
+
# Another entry point for the parser.
|
344
|
+
# If you use this method, you must implement RECEIVER#METHOD_ID method.
|
345
|
+
#
|
346
|
+
# RECEIVER#METHOD_ID is a method to get next token.
|
347
|
+
# It must 'yield' the token, which format is [TOKEN-SYMBOL, VALUE].
|
348
|
+
class_eval <<~RUBY, __FILE__, __LINE__ + 1
|
349
|
+
def yyparse(recv, mid)
|
350
|
+
#{Racc_YY_Parse_Method}(recv, mid, _racc_setup(), false)
|
351
|
+
end
|
352
|
+
RUBY
|
353
|
+
|
354
|
+
def _racc_yyparse_rb(recv, mid, arg, c_debug)
|
355
|
+
action_table, action_check, action_default, action_pointer,
|
356
|
+
_, _, _, _,
|
357
|
+
_, _, token_table, * = arg
|
358
|
+
|
359
|
+
_racc_init_sysvars
|
360
|
+
|
361
|
+
catch(:racc_end_parse) {
|
362
|
+
until i = action_pointer[@racc_state[-1]]
|
363
|
+
while act = _racc_evalact(action_default[@racc_state[-1]], arg)
|
364
|
+
;
|
365
|
+
end
|
366
|
+
end
|
367
|
+
recv.__send__(mid) do |tok, val|
|
368
|
+
unless tok
|
369
|
+
@racc_t = 0
|
370
|
+
else
|
371
|
+
@racc_t = (token_table[tok] or 1) # error token
|
372
|
+
end
|
373
|
+
@racc_val = val
|
374
|
+
@racc_read_next = false
|
375
|
+
|
376
|
+
i += @racc_t
|
377
|
+
unless i >= 0 and
|
378
|
+
act = action_table[i] and
|
379
|
+
action_check[i] == @racc_state[-1]
|
380
|
+
act = action_default[@racc_state[-1]]
|
381
|
+
end
|
382
|
+
while act = _racc_evalact(act, arg)
|
383
|
+
;
|
384
|
+
end
|
385
|
+
|
386
|
+
while !(i = action_pointer[@racc_state[-1]]) ||
|
387
|
+
! @racc_read_next ||
|
388
|
+
@racc_t == 0 # $
|
389
|
+
unless i and i += @racc_t and
|
390
|
+
i >= 0 and
|
391
|
+
act = action_table[i] and
|
392
|
+
action_check[i] == @racc_state[-1]
|
393
|
+
act = action_default[@racc_state[-1]]
|
394
|
+
end
|
395
|
+
while act = _racc_evalact(act, arg)
|
396
|
+
;
|
397
|
+
end
|
398
|
+
end
|
399
|
+
end
|
400
|
+
}
|
401
|
+
end
|
402
|
+
|
403
|
+
###
|
404
|
+
### common
|
405
|
+
###
|
406
|
+
|
407
|
+
def _racc_evalact(act, arg)
|
408
|
+
action_table, action_check, _, action_pointer,
|
409
|
+
_, _, _, _,
|
410
|
+
_, _, _, shift_n,
|
411
|
+
reduce_n, * = arg
|
412
|
+
nerr = 0 # tmp
|
413
|
+
|
414
|
+
if act > 0 and act < shift_n
|
415
|
+
#
|
416
|
+
# shift
|
417
|
+
#
|
418
|
+
if @racc_error_status > 0
|
419
|
+
@racc_error_status -= 1 unless @racc_t <= 1 # error token or EOF
|
420
|
+
end
|
421
|
+
@racc_vstack.push @racc_val
|
422
|
+
@racc_state.push act
|
423
|
+
@racc_read_next = true
|
424
|
+
if @yydebug
|
425
|
+
@racc_tstack.push @racc_t
|
426
|
+
racc_shift @racc_t, @racc_tstack, @racc_vstack
|
427
|
+
end
|
428
|
+
|
429
|
+
elsif act < 0 and act > -reduce_n
|
430
|
+
#
|
431
|
+
# reduce
|
432
|
+
#
|
433
|
+
code = catch(:racc_jump) {
|
434
|
+
@racc_state.push _racc_do_reduce(arg, act)
|
435
|
+
false
|
436
|
+
}
|
437
|
+
if code
|
438
|
+
case code
|
439
|
+
when 1 # yyerror
|
440
|
+
@racc_user_yyerror = true # user_yyerror
|
441
|
+
return -reduce_n
|
442
|
+
when 2 # yyaccept
|
443
|
+
return shift_n
|
444
|
+
else
|
445
|
+
raise '[Racc Bug] unknown jump code'
|
446
|
+
end
|
447
|
+
end
|
448
|
+
|
449
|
+
elsif act == shift_n
|
450
|
+
#
|
451
|
+
# accept
|
452
|
+
#
|
453
|
+
racc_accept if @yydebug
|
454
|
+
throw :racc_end_parse, @racc_vstack[0]
|
455
|
+
|
456
|
+
elsif act == -reduce_n
|
457
|
+
#
|
458
|
+
# error
|
459
|
+
#
|
460
|
+
case @racc_error_status
|
461
|
+
when 0
|
462
|
+
unless arg[21] # user_yyerror
|
463
|
+
nerr += 1
|
464
|
+
on_error @racc_t, @racc_val, @racc_vstack
|
465
|
+
end
|
466
|
+
when 3
|
467
|
+
if @racc_t == 0 # is $
|
468
|
+
# We're at EOF, and another error occurred immediately after
|
469
|
+
# attempting auto-recovery
|
470
|
+
throw :racc_end_parse, nil
|
471
|
+
end
|
472
|
+
@racc_read_next = true
|
473
|
+
end
|
474
|
+
@racc_user_yyerror = false
|
475
|
+
@racc_error_status = 3
|
476
|
+
while true
|
477
|
+
if i = action_pointer[@racc_state[-1]]
|
478
|
+
i += 1 # error token
|
479
|
+
if i >= 0 and
|
480
|
+
(act = action_table[i]) and
|
481
|
+
action_check[i] == @racc_state[-1]
|
482
|
+
break
|
483
|
+
end
|
484
|
+
end
|
485
|
+
throw :racc_end_parse, nil if @racc_state.size <= 1
|
486
|
+
@racc_state.pop
|
487
|
+
@racc_vstack.pop
|
488
|
+
if @yydebug
|
489
|
+
@racc_tstack.pop
|
490
|
+
racc_e_pop @racc_state, @racc_tstack, @racc_vstack
|
491
|
+
end
|
492
|
+
end
|
493
|
+
return act
|
494
|
+
|
495
|
+
else
|
496
|
+
raise "[Racc Bug] unknown action #{act.inspect}"
|
497
|
+
end
|
498
|
+
|
499
|
+
racc_next_state(@racc_state[-1], @racc_state) if @yydebug
|
500
|
+
|
501
|
+
nil
|
502
|
+
end
|
503
|
+
|
504
|
+
def _racc_do_reduce(arg, act)
|
505
|
+
_, _, _, _,
|
506
|
+
goto_table, goto_check, goto_default, goto_pointer,
|
507
|
+
nt_base, reduce_table, _, _,
|
508
|
+
_, use_result, * = arg
|
509
|
+
|
510
|
+
state = @racc_state
|
511
|
+
vstack = @racc_vstack
|
512
|
+
tstack = @racc_tstack
|
513
|
+
|
514
|
+
i = act * -3
|
515
|
+
len = reduce_table[i]
|
516
|
+
reduce_to = reduce_table[i+1]
|
517
|
+
method_id = reduce_table[i+2]
|
518
|
+
void_array = []
|
519
|
+
|
520
|
+
tmp_t = tstack[-len, len] if @yydebug
|
521
|
+
tmp_v = vstack[-len, len]
|
522
|
+
tstack[-len, len] = void_array if @yydebug
|
523
|
+
vstack[-len, len] = void_array
|
524
|
+
state[-len, len] = void_array
|
525
|
+
|
526
|
+
# tstack must be updated AFTER method call
|
527
|
+
if use_result
|
528
|
+
vstack.push __send__(method_id, tmp_v, vstack, tmp_v[0])
|
529
|
+
else
|
530
|
+
vstack.push __send__(method_id, tmp_v, vstack)
|
531
|
+
end
|
532
|
+
tstack.push reduce_to
|
533
|
+
|
534
|
+
racc_reduce(tmp_t, reduce_to, tstack, vstack) if @yydebug
|
535
|
+
|
536
|
+
k1 = reduce_to - nt_base
|
537
|
+
if i = goto_pointer[k1]
|
538
|
+
i += state[-1]
|
539
|
+
if i >= 0 and (curstate = goto_table[i]) and goto_check[i] == k1
|
540
|
+
return curstate
|
541
|
+
end
|
542
|
+
end
|
543
|
+
goto_default[k1]
|
544
|
+
end
|
545
|
+
|
546
|
+
# This method is called when a parse error is found.
|
547
|
+
#
|
548
|
+
# ERROR_TOKEN_ID is an internal ID of token which caused error.
|
549
|
+
# You can get string representation of this ID by calling
|
550
|
+
# #token_to_str.
|
551
|
+
#
|
552
|
+
# ERROR_VALUE is a value of error token.
|
553
|
+
#
|
554
|
+
# value_stack is a stack of symbol values.
|
555
|
+
# DO NOT MODIFY this object.
|
556
|
+
#
|
557
|
+
# This method raises ParseError by default.
|
558
|
+
#
|
559
|
+
# If this method returns, parsers enter "error recovering mode".
|
560
|
+
def on_error(t, val, vstack)
|
561
|
+
raise ParseError, sprintf("\nparse error on value %s (%s)",
|
562
|
+
val.inspect, token_to_str(t) || '?')
|
563
|
+
end
|
564
|
+
|
565
|
+
# Enter error recovering mode.
|
566
|
+
# This method does not call #on_error.
|
567
|
+
def yyerror
|
568
|
+
throw :racc_jump, 1
|
569
|
+
end
|
570
|
+
|
571
|
+
# Exit parser.
|
572
|
+
# Return value is +Symbol_Value_Stack[0]+.
|
573
|
+
def yyaccept
|
574
|
+
throw :racc_jump, 2
|
575
|
+
end
|
576
|
+
|
577
|
+
# Leave error recovering mode.
|
578
|
+
def yyerrok
|
579
|
+
@racc_error_status = 0
|
580
|
+
end
|
581
|
+
|
582
|
+
# For debugging output
|
583
|
+
def racc_read_token(t, tok, val)
|
584
|
+
@racc_debug_out.print 'read '
|
585
|
+
@racc_debug_out.print tok.inspect, '(', racc_token2str(t), ') '
|
586
|
+
@racc_debug_out.puts val.inspect
|
587
|
+
@racc_debug_out.puts
|
588
|
+
end
|
589
|
+
|
590
|
+
def racc_shift(tok, tstack, vstack)
|
591
|
+
@racc_debug_out.puts "shift #{racc_token2str tok}"
|
592
|
+
racc_print_stacks tstack, vstack
|
593
|
+
@racc_debug_out.puts
|
594
|
+
end
|
595
|
+
|
596
|
+
def racc_reduce(toks, sim, tstack, vstack)
|
597
|
+
out = @racc_debug_out
|
598
|
+
out.print 'reduce '
|
599
|
+
if toks.empty?
|
600
|
+
out.print ' <none>'
|
601
|
+
else
|
602
|
+
toks.each {|t| out.print ' ', racc_token2str(t) }
|
603
|
+
end
|
604
|
+
out.puts " --> #{racc_token2str(sim)}"
|
605
|
+
racc_print_stacks tstack, vstack
|
606
|
+
@racc_debug_out.puts
|
607
|
+
end
|
608
|
+
|
609
|
+
def racc_accept
|
610
|
+
@racc_debug_out.puts 'accept'
|
611
|
+
@racc_debug_out.puts
|
612
|
+
end
|
613
|
+
|
614
|
+
def racc_e_pop(state, tstack, vstack)
|
615
|
+
@racc_debug_out.puts 'error recovering mode: pop token'
|
616
|
+
racc_print_states state
|
617
|
+
racc_print_stacks tstack, vstack
|
618
|
+
@racc_debug_out.puts
|
619
|
+
end
|
620
|
+
|
621
|
+
def racc_next_state(curstate, state)
|
622
|
+
@racc_debug_out.puts "goto #{curstate}"
|
623
|
+
racc_print_states state
|
624
|
+
@racc_debug_out.puts
|
625
|
+
end
|
626
|
+
|
627
|
+
def racc_print_stacks(t, v)
|
628
|
+
out = @racc_debug_out
|
629
|
+
out.print ' ['
|
630
|
+
t.each_index do |i|
|
631
|
+
out.print ' (', racc_token2str(t[i]), ' ', v[i].inspect, ')'
|
632
|
+
end
|
633
|
+
out.puts ' ]'
|
634
|
+
end
|
635
|
+
|
636
|
+
def racc_print_states(s)
|
637
|
+
out = @racc_debug_out
|
638
|
+
out.print ' ['
|
639
|
+
s.each {|st| out.print ' ', st }
|
640
|
+
out.puts ' ]'
|
641
|
+
end
|
642
|
+
|
643
|
+
def racc_token2str(tok)
|
644
|
+
self.class::Racc_token_to_s_table[tok] or
|
645
|
+
raise "[Racc Bug] can't convert token #{tok} to string"
|
646
|
+
end
|
647
|
+
|
648
|
+
# Convert internal ID of token symbol to the string.
|
649
|
+
def token_to_str(t)
|
650
|
+
self.class::Racc_token_to_s_table[t]
|
651
|
+
end
|
652
|
+
|
653
|
+
end
|
654
|
+
|
655
|
+
end
|
656
|
+
|
657
|
+
__end_of_file__
|
658
|
+
end
|