Skip to content
New issue

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

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

Already on GitHub? # to your account

[Bug] Dot ('.') in rule name errors with Unknown symbol .. #3

Closed
X39 opened this issue May 27, 2020 · 0 comments
Closed

[Bug] Dot ('.') in rule name errors with Unknown symbol .. #3

X39 opened this issue May 27, 2020 · 0 comments

Comments

@X39
Copy link

X39 commented May 27, 2020

Summary

Rule names containing a . will error with Unknown symbol ...

Steps to Reproduce

  1. Create a file called eg. file.y
  2. Paste the code at the end of this section into it
  3. Rule start.b
    • Only the "start" part is highlighted
    • "." is marked as error with Unknown symbol ..
    • "b" part is not highlighted
    • only "start" part is recognized

Expected

  1. Rule start.b
    • Full "start.b" is highlighted
    • No Error
    • Full "start.b" gets recognized as rule

Example

image

%start start

%%

start: 'a'
     | start.b
     ;
start.b: 'b'
       ;

%%

Related Documentation

https://www.gnu.org/software/bison/manual/html_node/Empty-Rules.html

@X39 X39 changed the title [Bug] Dot ('.') in rule names errors - Unknown symbol .. [Bug] Dot ('.') in rule name errors with Unknown symbol .. May 27, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant