-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
bugSomething isn't workingSomething isn't working
Description
upd: the website Editor should try to pick the semantically top-level rule instead of the first in an alphabetically sorted order, or if it's not possible, at least do this for the example from the homepage
Or maybe the easier option is to just document that the user needs to select the general rule manually
Describe the bug
I was trying out the example from the home page and instead of getting the error mentioned there got a working - alpha: "a"
To Reproduce
- add the grammar from the home page
alpha = { 'a'..'z' | 'A'..'Z' }
digit = { '0'..'9' }
ident = { (alpha | digit)+ }
ident_list = _{ !digit ~ ident ~ (" " ~ ident)+ }
// ^
// ident_list rule is silent (produces no tokens or error reports)
- paste
ab *
Expected behavior
Get the error message
thread 'main' panicked at ' --> 1:1
|
1 | ab *
| ^---
|
= expected ident', src/main.rs:12
Actual behavior
Happy parsing outcome - alpha: "a"
Additional context
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working