Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Counterexamples #81

Merged
merged 1 commit into from
Aug 16, 2023
Merged

Implement Counterexamples #81

merged 1 commit into from
Aug 16, 2023

Conversation

yui-knk
Copy link
Collaborator

@yui-knk yui-knk commented Aug 16, 2023

Implement Nonunifying Counterexamples.
See https://www.cs.cornell.edu/andru/papers/cupex/cupex.pdf

These examples are rendered for conflicts.

Shift Conflict:
0:  stmt                                                           "end of file"
    3:  expr                                         '?' stmt stmt
        6:  expr                            '+' expr
            6: expr '+' expr
                        6: expr  • '+' expr

Reduce Conflict:
0:  stmt                                                "end of file"
    3:  expr                              '?' stmt stmt
        6:  expr                 '+' expr
            6: expr '+' expr  •

Implement Nonunifying Counterexamples.
See https://www.cs.cornell.edu/andru/papers/cupex/cupex.pdf

These examples are rendered for conflicts.

```
Shift Conflict:
0:  stmt                                                           "end of file"
    3:  expr                                         '?' stmt stmt
        6:  expr                            '+' expr
            6: expr '+' expr
                        6: expr  • '+' expr

Reduce Conflict:
0:  stmt                                                "end of file"
    3:  expr                              '?' stmt stmt
        6:  expr                 '+' expr
            6: expr '+' expr  •
```
@yui-knk yui-knk merged commit 8b0d6ac into ruby:master Aug 16, 2023
@yui-knk yui-knk deleted the counterexamples branch August 16, 2023 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant