answersLogoWhite

0


Best Answer

Convertible string := <significand><exponent> <significand> := [<sign>]<digits>[.<digits0>] <exponent> := E[<sign>]<digits0> <sign> := { + | - } <digits> := <digit><digits0> <digits0> := <digit>* <digit> := { 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 }

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write EBNF decribtion for C float literal?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

EBNF float data type?

&lt;float_literals&gt; -&gt; &lt;digit&gt; { &lt;digit&gt; } [ . ] [ { &lt;digit&gt; } ] &lt;digit&gt; -&gt; "0" | &lt;digit excluding zero&gt; &lt;digit excluding zero&gt; -&gt; "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" hi dude i wish you are satisfied with my answer LOL ^^


Write EBNF descriptions for A java class definition header statement?

&reg; {} class [extends class_name] [implements {, }] &reg; public | abstract | final &reg; {} class [extends class_name] [implements {, }] &reg; public | abstract | final


-Write the syntax of the c while and do while statements using EBNF Assume the following nonterminals are already defined statement and expr?

The hash tag used before the name is mainly for Twitter. These tags, however, can also be used on Facebook and other social media networks. The tags basically link followers and friends of the message to a central site where they can post pictures, thoughts, and discussions. In this instance, the hash tag is asking a question that should receive timely responses from friends and followers.


What are java tokens used for?

In a Java program, all characters are grouped into symbols called tokens. Larger language features are built from the first five categories of tokens (the sixth kind of token is recognized, but is then discarded by the Java compiler from further processing). We must learn how to identify all six kind of tokens that can appear in Java programs. In EBNF we write one simple rule that captures this structure: token


What are structured grammars and languages generated by a grammar?

Structured or formal grammars are a method of describing a computer language in another meta-language, that if the grammar. For example, you could use EBNF to describe the grammar for the language Pascal. The meta-language, the language in which the grammar is expressed, varies with the tools in use.Structured grammars are typically used to implement programming languages, but are also commonly used to create parsers for meta-languages such as HTML or XML, for command oriented streams, or for complex protocols (such as HTTP).This formal grammar definition acts as input to a parser generator. Parser generators are also compiler generators or compiler compilers, but these tools never generate a compiler. Instead, they generate lexical analyzers and parser tools, typically resulting in an abstract syntax tree (semantic node tree) in some form.A lexical analyzer is the tool that digests the input in the final language (e.g. Pascal), and decides on each fragment (token) what it is: a keyword, a number, etc. The parser generator folds the stream of tokens into semantic nodes (an expression, a variable definition, etc).At that point, the input (the Pascal program in this example) is known to be syntactically correct. The next stages include semantic analysis (does it make sense and what does it mean?), code generation and code optimization.The most famous (and infamous) representative is the pair of lex and yacc. Lex generates a lexical analyzer, yacc (short for Yet Another Compiler Compiler) generates a parser. Lex and Yacc's more modern successors are Flex and Bison, other popular tools include ANTLR. Other tools are available.

Related questions

EBNF float data type?

&lt;float_literals&gt; -&gt; &lt;digit&gt; { &lt;digit&gt; } [ . ] [ { &lt;digit&gt; } ] &lt;digit&gt; -&gt; "0" | &lt;digit excluding zero&gt; &lt;digit excluding zero&gt; -&gt; "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" hi dude i wish you are satisfied with my answer LOL ^^


Write EBNF descriptions for A java class definition header statement?

&reg; {} class [extends class_name] [implements {, }] &reg; public | abstract | final &reg; {} class [extends class_name] [implements {, }] &reg; public | abstract | final


-Write the syntax of the c while and do while statements using EBNF Assume the following nonterminals are already defined statement and expr?

The hash tag used before the name is mainly for Twitter. These tags, however, can also be used on Facebook and other social media networks. The tags basically link followers and friends of the message to a central site where they can post pictures, thoughts, and discussions. In this instance, the hash tag is asking a question that should receive timely responses from friends and followers.


What are java tokens used for?

In a Java program, all characters are grouped into symbols called tokens. Larger language features are built from the first five categories of tokens (the sixth kind of token is recognized, but is then discarded by the Java compiler from further processing). We must learn how to identify all six kind of tokens that can appear in Java programs. In EBNF we write one simple rule that captures this structure: token


What are structured grammars and languages generated by a grammar?

Structured or formal grammars are a method of describing a computer language in another meta-language, that if the grammar. For example, you could use EBNF to describe the grammar for the language Pascal. The meta-language, the language in which the grammar is expressed, varies with the tools in use.Structured grammars are typically used to implement programming languages, but are also commonly used to create parsers for meta-languages such as HTML or XML, for command oriented streams, or for complex protocols (such as HTTP).This formal grammar definition acts as input to a parser generator. Parser generators are also compiler generators or compiler compilers, but these tools never generate a compiler. Instead, they generate lexical analyzers and parser tools, typically resulting in an abstract syntax tree (semantic node tree) in some form.A lexical analyzer is the tool that digests the input in the final language (e.g. Pascal), and decides on each fragment (token) what it is: a keyword, a number, etc. The parser generator folds the stream of tokens into semantic nodes (an expression, a variable definition, etc).At that point, the input (the Pascal program in this example) is known to be syntactically correct. The next stages include semantic analysis (does it make sense and what does it mean?), code generation and code optimization.The most famous (and infamous) representative is the pair of lex and yacc. Lex generates a lexical analyzer, yacc (short for Yet Another Compiler Compiler) generates a parser. Lex and Yacc's more modern successors are Flex and Bison, other popular tools include ANTLR. Other tools are available.