Subtract() public method

public Subtract ( CharSet s ) : void
s CharSet
return void
Beispiel #1
0
        void Set(out CharSet s)
        {
            CharSet s2;

            SimSet(out s);
            while (la.kind == 20 || la.kind == 21)
            {
                if (la.kind == 20)
                {
                    Get();
                    SimSet(out s2);
                    s.Or(s2);
                }
                else
                {
                    Get();
                    SimSet(out s2);
                    s.Subtract(s2);
                }
            }
        }
Beispiel #2
0
 void Set(out CharSet s)
 {
     CharSet s2;
     SimSet(out s);
     while (la.kind == 25 || la.kind == 26) {
     if (la.kind == 25) {
         Get();
         SimSet(out s2);
         s.Or(s2);
     } else {
         Get();
         SimSet(out s2);
         s.Subtract(s2);
     }
     }
 }
Beispiel #3
0
	void Set(
#line 218 "Coco.atg" //SOURCE beg=9237,len=13,col=5
					out CharSet s
#line default //END SOURCE
) {

#line 218 "Coco.atg" //SOURCE beg=9268,len=12,col=36
																																				CharSet s2; 
#line default //END SOURCE
		SimSet(
#line 220 "Coco.atg" //SOURCE beg=9296,len=5,col=10
										out s
#line default //END SOURCE
);
		while (la.kind == 21 || la.kind == 22) {
			if (la.kind == 21) {
				Get();
				SimSet(
#line 221 "Coco.atg" //SOURCE beg=9319,len=6,col=16
																out s2
#line default //END SOURCE
);

#line 221 "Coco.atg" //SOURCE beg=9339,len=10,col=36
																																				s.Or(s2); 
#line default //END SOURCE
			} else {
				Get();
				SimSet(
#line 222 "Coco.atg" //SOURCE beg=9368,len=6,col=16
																out s2
#line default //END SOURCE
);

#line 222 "Coco.atg" //SOURCE beg=9388,len=16,col=36
																																				s.Subtract(s2); 
#line default //END SOURCE
			}
		}
	}
Beispiel #4
0
 void ParseSet(out CharSet s)
 {
     CharSet s2;
     ParseSimSet(out s);
     while (la.kind == 22 || la.kind == 23) {
     if (la.kind == 22) {
         Get();
         ParseSimSet(out s2);
         s.Or(s2);
     } else {
         Get();
         ParseSimSet(out s2);
         s.Subtract(s2);
     }
     }
 }