• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Augmented Backus-Naur Form Parser

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Augmented Backus-Naur Form Parser

    Come on you lot, make my day!

    I've been looking at language parsers and have come to the conclusion that the Augmented BNF syntax would be ideal. The main reason being the ability to specify lengths of tokens rather than just 0 or more, 1 or more and so on as with straight or Extended BNF.

    The problem is I have failed to find a shareware parser for Augmented BNF. I have found things like JavaCC and ANTLR but not one that states it is for Augmented BNF.

    So, the questions is, have I missed something? Why aren't there ABNF parsers out there?

    #2
    Don't you mean "Extended" not "Augmented"?
    Insanity: repeating the same actions, but expecting different results.
    threadeds website, and here's my blog.

    Comment


      #3
      Originally posted by threaded
      Don't you mean "Extended" not "Augmented"?
      Ah, the resident genius.

      Nope, I'm interested in Augmented as in RFC2234 which gives the <a>*<b>element augmentation.

      Extended only gives the *, + and ? extentions.

      Comment


        #4
        Are you wanting a parser or a parser generator?
        Insanity: repeating the same actions, but expecting different results.
        threadeds website, and here's my blog.

        Comment


          #5
          Originally posted by threaded
          Are you wanting a parser or a parser generator?
          Parser generator I assume.

          I want to write a ABNF specification for a particular protocol and produce a parser for instances of messages using that protocol.

          Comment


            #6
            Have you looked at APG?
            Insanity: repeating the same actions, but expecting different results.
            threadeds website, and here's my blog.

            Comment


              #7
              That looks pretty good. Pity only in C++ but I can probably live with that.

              Obviously a man with greater surfing skills than moi.

              Any other offerings?

              Comment


                #8
                .Net version 5 will have one. Honest.

                Comment


                  #9
                  Originally posted by DimPrawn
                  .Net version 5 will have one. Honest.
                  Are you threatening my Mac? Are you? Are you!

                  Comment


                    #10
                    Apple will switch to Windoze soon, the Dvorak chappy said so.
                    Insanity: repeating the same actions, but expecting different results.
                    threadeds website, and here's my blog.

                    Comment

                    Working...
                    X