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

Broken for D parsers: %code lexer { #84

Closed
ghost opened this issue Jan 23, 2022 · 1 comment
Closed

Broken for D parsers: %code lexer { #84

ghost opened this issue Jan 23, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 23, 2022

The use of %code lexer { in the grammar file is to be broken for %language "D". For file bison/data/skeletons/lalr1.d at line 272, changing implements to : seems to be all that is needed to fix this issue (from limited testing).

It's great to see D support in bison, and I hope it will continue to be developed/extended.

adelavais added a commit to adelavais/bison that referenced this issue Sep 19, 2022
Fix syntax error regarding interface implementation of the Lexer when the  option is used.

Reported by ledaniel2.
<akimd#84>

* data/skeletons/lalr1.d: Fix syntax.
* tests/d.at: Test it.
adelavais added a commit to adelavais/bison that referenced this issue Sep 19, 2022
st it>
Fix syntax error regarding interface inheritance of the Lexer when the %code lexer option is used.

Reported by ledaniel2.
<akimd#84>

* data/skeletons/lalr1.d: Fix syntax.
* tests/d.at: Test it.
adelavais added a commit to adelavais/bison that referenced this issue Sep 19, 2022
Fix syntax error regarding interface inheritance of the Lexer. It appeared when the %code lexer option was used.

Reported by ledaniel2.
<akimd#84>

* data/skeletons/lalr1.d: Fix syntax.
* tests/d.at: Test it.
akimd pushed a commit that referenced this issue Sep 20, 2022
Fix syntax error regarding interface inheritance of the Lexer. It
appeared when the `%code lexer` option was used.

Reported by ledaniel2.
<#84>

* data/skeletons/lalr1.d: Fix syntax.
* tests/d.at: Test it.
@akimd
Copy link
Owner

akimd commented Sep 20, 2022

Fixed in master. Thanks to both of you.

@akimd akimd closed this as completed Sep 20, 2022
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

No branches or pull requests

1 participant