Fourteenth work operator priority analysis

1. Known operator precedence relation matrix as follows:

 

+

*

i

(

)

#

+

>

<

<

<

>

>

*

>

>

<

<

>

>

i

>

>

   

>

>

(

<

<

<

<

=

 

)

>

>

   

>

>

#

<

<

<

<

 

=

 Written symbol string (i + i) * i # analysis of operator precedence.

 

 

 

2. Connect jobs (P121 Exercise 1), to complete 4), 5) two steps.

4) whether the operator priority to grammar?

Yes.

5) given input string (a, (a, a)) # of operator precedence analysis.

 

 

 

 

3. Write a + b * (cd) + e / (cd) ↑ n the reverse Polish notation, ternary type, quaternion type.

 

Guess you like

Origin www.cnblogs.com/fqy1028/p/12021120.html