Coder Social home page Coder Social logo

Comments (5)

tomtau avatar tomtau commented on August 26, 2024 1

@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.

HoloTheDrunk avatar HoloTheDrunk commented on August 26, 2024 1

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.

eugenesvk avatar eugenesvk commented on August 26, 2024

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.

tomtau avatar tomtau commented on August 26, 2024

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.

nathanielknight avatar nathanielknight commented on August 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.