Skip to main content

What do you understand by Backus-Naur Form


Backus-Naur Form

BNF is main method for context-free grammars; used for syntax of programming languages used in computing, document formats, instruction sets and communication protocols.  It is used to explain the rules related to the programming languages. It is applied when exact descriptions of languages are needed. BNF is very important in compiler construction. BNF defines only syntax not semantics. In BNF variable must be declared before use. But there are some limitations in BNF like:-No easy way to describe the length of the variable, such as maximum length of the variable names. No easy way to describe the rang, such as 1 to 31.
Example:-
  •   < > indicate a nonterminal that needs to be further expanded, e.g. <variable>
  •   Symbols not enclosed in < > are terminals; they represent themselves, e.g. if, while, (
  •   The symbol ::= means is defined as
  •   The symbol  |  means or; it separates alternatives, e.g. <addop> ::= + | -


Comments

Popular posts from this blog

In Regression Testing: Difference between Automation And Manual Testing

The difference between an Automation Testing & Manual-Testing is a pillar of the Software testing, because the whole-testing is based on the Automation Testing and Manual Testing. In the project you can do both Automation Testing & Manual Testing & you can also do both Automation testing and Manual Testing simultaneously. Difference between Automation and Manual Testing Automation Testing Manual Testing The automation testing is a continuous component of the manual testing. This testing is an initiate of the testing, without of this testing we cannot start the automation testing. This takes less of time. This takes a lot of time. In the automation testing, we always test by the running the scripts. In the manual testing testers’re allowed to do the random for find the Bugs. In automation testing, it is done on the different on same time. The manual testing would be executes sequentially. ...

Want to know about Mobile Application Testing? Came to right place

What is Mobile Application Testing ? Mobile Application Testing is a phenomenon of testing functionality, usability and consistency of application software designed for mobiles. It is done in two ways: Automated and Manually. When you buy a new mobile, various applications came pre-installed and some you install as per your need from mobile software distribution platforms such as Google Play, Nokia Store etc. In the recent years, mobile devices had shown a rapid growth rate .  Factors that give an open challenge to Mobile application Testing : 1. Mobile devices models : Different models have different hardware configurations, input methods (some are QWERTY, some are touch while others are normal). 2. Several different operating systems (OS) : Market  is full of availability of different operating  systems  (   Android , IOS, BREW, BREWMP, Symbian,   Windows Phone , and   BlackBerry   (RIM)).Each operating system is unique in ...

INTRODUCTION TO SELENIUM TESTING

If you are interesting in software testing and desperately want to work in software testing profile then this post is surely for you, as we know that selenium testing is an important aspect of  software testing so you should go through this at least once. WHAT IS SELENIUM TESTING? SELENIUM is a tool for authoring tests without learning test scripting language like selenium IDE. Selenium is not just a tool but actually it is a cluster of independent tools. And selenium testing is a testing which is performed by using selenium tool. WHY WE USE SELENIUM TESTING I f we talk about the functioning and scenario of today's IT industries or companies then it is known to everyone that there is a mass movement towards automation testing. Not only this but the cluster of manual testing scenario  has also raised a great demand to make to manual testing automated by using various tools such as selenium.  There are numerous benefits which a software tester gets if he/she impleme...