3. Job syntax tree, phrases, phrases directly Handles

1. Known grammar:

S->a|^|(T)

T->T,S|S

Analysis sentence (T, (^, a)), find all phrases, phrases and handle directly.

 

 

 

2. The context-free grammar structure description language:

{anbn|n>=0}

{ambn|m>=n>=0}

The if statement

 

Guess you like

Origin www.cnblogs.com/ys-hl-lo/p/11549788.html