Code Monkey home page Code Monkey logo

Comments (4)

katef avatar katef commented on May 19, 2024

This is true - there are several different dialects, all of which people call "ebnf". Those examples are other people's various different things I've found, which (confusingly) all get called "ebnf".

I didn't want to implement parsers for dialects unless there is a clear specification to follow. I don't want to accidentally invent yet more dialects.

I think we should split the ebnf dialect into separate parsers:

Then we could figure out which examples are supposed to be which dialect, and rename them accordingly.

from kgt.

katef avatar katef commented on May 19, 2024

@perlawk which ebnf dialect would you like to use?

from kgt.

katef avatar katef commented on May 19, 2024

Renamed the ebnf dialect to iso-ebnf in 94137d5. This is ISO/IEC 14977 : 1996(E).

expr-minus.iso-ebnf and json.iso-ebnf are the only examples in the ISO dialect. The other .ebnf examples are some other ebnf dialect.

Note ebnf2.ebnf is probably intended to be ISO EBNF, but technically incorrect; the standard requires an empty newline to separate productions. I imagine the author did not realise that, or have a way to validate it.

from kgt.

katef avatar katef commented on May 19, 2024

I'm closing this because the EBNF dialect was split to multiple dialects. I'm sure there are bugs to fix for all of them.

from kgt.

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.