Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged operator-grammar
1
votes
2
answers
1
#compiler-design
Which of the following statements are true. Please give a detailed explanation. 1) If the given grammar is not operator grammar then we can’t design an operator precedence table and there doesn’t exist an operator precedence parser. 2) If the given grammar is operator grammar then it is guaranteed that there exists an operator precedence parser.
Which of the following statements are true. Please give a detailed explanation.1) If the given grammar is not operator grammar then we can’t design an operator precede...
Crackca
754
views
Crackca
asked
Sep 19, 2021
Compiler Design
compiler-design
operator-grammar
operator-precedence
+
–
1
votes
2
answers
2
Operator Precedence Parsing.
In operator precedence parsing we have the rule that production cannot have two adjacent non-terminals or an epsilon production, so this production, S--> ab is allowed but not S--> AB, A->a and B->b, though they are giving us the same output. Why so?
In operator precedence parsing we have the rule that production cannot have two adjacent non-terminals or an epsilon production, so this production, S ab is allowed but ...
Hirak
1.3k
views
Hirak
asked
Jun 14, 2019
Compiler Design
compiler-design
operator-grammar
parsing
+
–
0
votes
0
answers
3
Compiler Design: Self Doubt on Operator Grammar
Say I have a grammar, S→ AB A→ a B→ b This grammar is not operator grammar as 2 non terminals are lying side by side, but can be converted to an operator grammar. S→ ab , A→ a , B→ b here i have a doubt, operator grammar ... can we operate even two terminal symbols when placed side by side? Isn't it same as placing 2 non-terminal symbol side by side?
Say I have a grammar, S→ AB A→ a B→ bThis grammar is not operator grammar as 2 non ter...
Hirak
570
views
Hirak
asked
Jun 6, 2019
Compiler Design
compiler-design
operator-grammar
ullman
+
–
0
votes
1
answer
4
TANCET 2016 CD
Balaji Jegan
291
views
Balaji Jegan
asked
Oct 23, 2018
Compiler Design
tancet
compiler-design
parsing
operator-grammar
operator-precedence
+
–
0
votes
1
answer
5
Operator precedence parser
What is the difference between operator grammar and operator precedence grammar?
What is the difference between operator grammar and operator precedence grammar?
saumya mishra
2.1k
views
saumya mishra
asked
Jun 15, 2018
Compiler Design
compiler-design
operator-grammar
operator-precedence
+
–
0
votes
0
answers
6
Operator Grammar
Given an operator grammar : $E -> E * F / F + E / F$ $F -> F - F / id$ Is this table correct for the above operator grammar ?
Given an operator grammar :$E - E * F / F + E / F$$F - F - F / id$ Is this table correct for the above operator grammar ?
Rahul Ranjan 1
514
views
Rahul Ranjan 1
asked
May 29, 2018
Compiler Design
compiler-design
operator-grammar
+
–
2
votes
3
answers
7
Is it always true that operators defined at the same level in the production rule, have same precedence ?
If I have the grammar :E->E*F | F+E |FF->id ,Now here although + and * are defined at the same level , with different associativity but this grammar produces 2 different ...
radha gogia
1.1k
views
radha gogia
asked
Mar 19, 2018
Compiler Design
compiler-design
operator-grammar
operator-precedence
+
–
2
votes
0
answers
8
Operator Precedence Parser
Can anyone explain why operator precedence parsing cannot handle unary minus,and what are the approach to handle it.
Can anyone explain why operator precedence parsing cannot handle unary minus,and what are the approach to handle it.
junaid ahmad
872
views
junaid ahmad
asked
Nov 16, 2017
Compiler Design
compiler-design
operator-grammar
+
–
3
votes
1
answer
9
left recursive- self
Is operator precedence parser the only parser that accepts left recursive grammar?
Is operator precedence parser the only parser that accepts left recursive grammar?
A_i_$_h
896
views
A_i_$_h
asked
Nov 13, 2017
Compiler Design
compiler-design
operator-grammar
operator-precedence
descriptive
+
–
2
votes
1
answer
10
operator grammer
someone please explain how to draw operator precedence table to solve this question.
someone please explain how to draw operator precedence table to solve this question.
arch
1.3k
views
arch
asked
Nov 7, 2017
Compiler Design
compiler-design
operator-grammar
operator-precedence
test-series
+
–
0
votes
1
answer
11
operator grammar
Given P,Q,R are non- terminals and r , s ,t are terminals , which of the following grammar rule(s) violate the requirements of an operator grammar I P->QR II P->QsR III P-> ^ IV P->Q+Rr A) I only B) I and III only C) II and III only D) III and IV only
Given P,Q,R are non- terminals and r , s ,t are terminals ,which of the following grammar rule(s) violate the requirements of an operator grammarI P->QRII P->QsRIII P- ...
Sanjay Sharma
1.4k
views
Sanjay Sharma
asked
Oct 29, 2017
Compiler Design
compiler-design
grammar
operator-grammar
+
–
0
votes
5
answers
12
Operator Precedence
In Operator precedence parsing, precedence relations are defined, i. for all pair of non-terminals. ii. for all pair of terminals. iii. to delimit the handle. iv. only for certain pair of terminals.
In Operator precedence parsing, precedence relations are defined,i. for all pair of non-terminals.ii. for all pair of terminals.iii. to delimit the handle.iv. only for ce...
AnilGoudar
2.1k
views
AnilGoudar
asked
Sep 18, 2017
Compiler Design
compiler-design
operator-grammar
+
–
0
votes
2
answers
13
Operator Grammar
Given an Operator Grammar as, E -> E*F / F+E / F F -> F-F / id How to determine associativity in this case? Since Operator grammar can be ambiguous also. Is the above question solved using associativity and precedence of operators we consider in C programming? or it is Different.
Given an Operator Grammar as,E - E*F / F+E / FF - F-F / idHow to determine associativity in this case? Since Operator grammar can be ambiguous also.Is the above question ...
AnilGoudar
2.9k
views
AnilGoudar
asked
Sep 15, 2017
Compiler Design
grammar
compiler-design
operator-grammar
+
–
0
votes
0
answers
14
Beginning C and Computer Organization - C Statement that sets to 0 some bits without disturbing other bits
Write one or more C statements that clears (i.e., sets to 0) bits 11 and 12 of the variable "x" without disturbing the other bits using bit-level C operators. The variabl...
Garrett McClure
299
views
Garrett McClure
asked
Sep 13, 2017
Programming in C
programming-in-c
programming
operator-grammar
+
–
0
votes
1
answer
15
Operator Precedence
E → E + E | E * E | ( E ) | id What will be operator precedence for above grammar.Is precedence differs due to ambiguity
E → E + E | E * E | ( E ) | idWhat will be operator precedence for above grammar.Is precedence differs due to ambiguity
jatin khachane 1
478
views
jatin khachane 1
asked
Jun 7, 2017
Compiler Design
compiler-design
operator-grammar
operator-precedence
ambiguous-grammar
descriptive
+
–
0
votes
1
answer
16
compiler
ukn
387
views
ukn
asked
Jan 19, 2017
Compiler Design
compiler-design
grammar
operator-grammar
operator-precedence
ace-test-series
+
–
3
votes
1
answer
17
parsing
Consider the following operator grammar E->AaBcD A->bA|e B->bB|e D->eD|g Which of the following precedence relation is incorrect from the above grammar? Assume x<•y is used to represent x is having less precedence than y and in the expression x appears first and y appears next. a) a<•b b) c<•g c) a<•e d) c<•b
Consider the following operator grammarE->AaBcDA->bA|eB->bB|eD->eD|gWhich of the following precedence relation is incorrect from the above grammar? Assume x<•y is used ...
kirtikanwar
1.2k
views
kirtikanwar
asked
Jan 4, 2017
Compiler Design
compiler-design
parsing
operator-grammar
operator-precedence
+
–
1
votes
1
answer
18
lead of a terminal
What is lead...?? and how to calculate it..??
What is lead...?? and how to calculate it..??
iita
209
views
iita
asked
Dec 20, 2016
Compiler Design
compiler-design
parsing
operator-grammar
test-series
+
–
0
votes
2
answers
19
operator grammer
iita
367
views
iita
asked
Dec 20, 2016
Compiler Design
compiler-design
operator-grammar
test-series
+
–
0
votes
3
answers
20
precedence in grammer
iita
519
views
iita
asked
Dec 20, 2016
Compiler Design
compiler-design
operator-grammar
operator-precedence
ace-test-series
+
–
0
votes
1
answer
21
made Easy compiler test q 10
correct answer
correct answer
Vasu_gate2017
305
views
Vasu_gate2017
asked
Dec 14, 2016
Compiler Design
compiler-design
parsing
operator-grammar
operator-precedence
made-easy-test-series
+
–
1
votes
1
answer
22
Doubt
thor
395
views
thor
asked
Nov 17, 2016
Compiler Design
compiler-design
operator-grammar
ambiguous-grammar
ace-test-series
+
–
1
votes
2
answers
23
self
kashyap.rj
296
views
kashyap.rj
asked
Oct 10, 2016
Compiler Design
compiler-design
operator-grammar
test-series
+
–
13
votes
3
answers
24
ISRO2015-26
Which grammar rules violate the requirement of the operator grammar? $A, B, C$ are variables and $a, b, c$ are terminals $A \rightarrow BC$ $A \rightarrow CcBb$ $A \rightarrow BaC$ $A \rightarrow \epsilon$ $(i)$ only $(i)$ and $(ii)$ $(i)$ and $(iii)$ $(i)$ and $(iv)$
Which grammar rules violate the requirement of the operator grammar? $A, B, C$ are variables and $a, b, c$ are terminals$A \rightarrow BC$$A \rightarrow CcBb$$A \rightarr...
go_editor
6.2k
views
go_editor
asked
Jun 17, 2016
Compiler Design
isro2015
compiler-design
operator-grammar
parsing
+
–
–1
votes
2
answers
25
Associative
shivanisrivarshini
338
views
shivanisrivarshini
asked
Jan 31, 2016
Compiler Design
compiler-design
operator-grammar
operator-precedence
test-series
+
–
1
votes
3
answers
26
operator grammar
Q). Consider the following operator grammar $S \rightarrow BbA\mid bA \mid bBA$ $B \rightarrow b \mid c$ $A \rightarrow a $ Which of the following precedence relation is correct from above grammar? Assume $x<y$ is used to represent $y$ has highest precedence than $x$ and in expression $y$ ... $a <- b$ b). $c < a$ c). Both (a) and (b) d). None of these.
Q). Consider the following operator grammar $S \rightarrow BbA\mid bA \mid bBA$ $B \rightarrow b \mid c$ $A \rightarrow a $Which of the following precedenc...
Jhunjhunuwala
3.5k
views
Jhunjhunuwala
asked
Jan 28, 2016
Compiler Design
compiler-design
operator-grammar
operator-precedence
test-series
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register