Comments (5)
@eugenesvk you may need to use the "ident_list" rule (instead of "alpha") -- i.e. select it in the web editor or use Rule::ident_list
in your parser Rust code... then you should see the expected behavior.
from site.
Oh, I see, so it just doesn't select the most general rule by default, but defaults to the alphabetic sorting
Fairly certain it's actually just the one that's at the top, not the first in alphabetical order
from site.
Oh, I see, so it just doesn't select the most general rule by default, but defaults to the alphabetic sorting
I'm not sure it's possible to generically determine what the top-level rule is, but I think at least for the homepage example the preselection should do the right thing
from site.
Yeah, it's not possible to tell which rule is the top-level one, but perhaps the homepage editor could be pre-filled with that example. @nathanielknight wdyt?
from site.
@eugenesvk Thanks for the report; I'm sure you're not the only person who's been caught out by this UX issue.
I think adding this as a default example (perhaps with an explanatory comment) would be an improvement.
from site.
Related Issues (20)
- Site unreachable HOT 1
- "Try it now" boxes don't work / have panicked? HOT 2
- Error underline in online editor difficult to see for those with colourblindness HOT 5
- migrate from stdweb to wasm-bindgen and websys
- integrate a web version of `pest_debugger` HOT 5
- Add Licence HOT 5
- Add some more example grammars and a way to put them into the online editor HOT 1
- Archive pest-parser.github.io and use github actions instead
- Separate book deployment HOT 3
- Proposal to upgrade site implementations. HOT 2
- Track and/or limit site size
- Separate playground HOT 1
- Code and tracebacks are ill-formatted on deployed site HOT 4
- Add description and link to side bar HOT 1
- playground: rule names only update once you edit the grammar HOT 3
- unicode characters in input break the share button
- Add label support for the online editor HOT 6
- Pest format bug
- Share button depends on discontinued service HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from site.