Inheritance: RegExTree
Exemplo n.º 1
0
 // Factor : Primary {Primary} ;
 internal RegExTree Factor() {
     RegExTree tmp = Primary();
     while (prStart[(int)chr] || esc)
         tmp = new Binary( RegOp.concat, tmp, Primary() );
     return tmp;
 }
Exemplo n.º 2
0
 // Term : Factor {"|" Factor} ;
 internal RegExTree Term() {
     RegExTree tmp = Factor();
     while (!esc && chr == '|') {
         scan();
         tmp = new Binary( RegOp.alt, tmp, Factor() );
     }
     return tmp;
 }