Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 725109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:18:00+00:00 2026-05-14T06:18:00+00:00

I want to come up with a language syntax. I have read a bit

  • 0

I want to come up with a language syntax. I have read a bit about these three, and can’t really see anything that one can do that another can’t. Is there any reason to use one over another? Or is it just a matter of preference?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T06:18:00+00:00Added an answer on May 14, 2026 at 6:18 am

    You have to think about EBNF and ABNF as extensions that help you just to be more concise and expressive while developing your grammars.

    For example think about an optional non-terminal symbol, in a BNF grammar you would define it by using intermediate symbols like:

    A        ::= OPTIONAL OTHER
    OPTIONAL ::= opt_part | epsilon
    

    while with EBNF you can do it directly using optional syntax:

    A ::= [opt_part] OTHER
    

    Then since there’s no way to express precedence in a BNF you have to use always intermediate symbols also for nested choices:

    BNF
    A ::= B C
    B ::= a | b | c
    
    EBNF
    A ::= (a | b | c) C
    

    This is true for many syntax issues that are allowed in an EBNF or ABNF grammar, thanks to syntactic sugar but not with a normal BNF. ABNF extends EBNF, allowing you to do more complicated things, like specifying how many occurrence of a symbol can be found together (i.e. 4*DIGIT)

    So choosing an ABNF or an EBNF as language of choice for your grammar will make your work easier, since you will be more expressive without filling you grammar with useless symbols that will be generated anyway by your parser generator, but you won’t care about them!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want that the menu i have created for testing entries should come in
I want to see all the different ways you can come up with, for
I'm want to use RedirectAttibutes property that has come up in Spring 3.1, I
I want to access camera to record video to upload, but have come across
Why does C++ have public members that anyone can call and friend declarations that
For a language that has an easy shorthand syntax for lists, ex x =
I have a textbox that I want to the user to write something in
I have come across similar problems a few times in the past and want
I have come to believe that the optimal size for a boolean variable is
I recently have come across with a need for some type of translation-type that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.