Example #1
0
 private PushbackQueue(GetObj getObj, TokWrap tokWrap)
 {
     this.getObj  = getObj;
     this.tokWrap = tokWrap;
 }
Example #2
0
 /// <summary>
 /// Create a new pushback queue which enqueues token information
 /// from the host scanner. This should be called once per scanner
 /// instance, at scanner initialization.
 /// </summary>
 /// <param name="getObj">A delegate that constructs an Obj from a call to scanner.yylex</param>
 /// <param name="tokWrap">A delegate that constructs an Obj from the given integer token</param>
 /// <returns>A reference to the queue object</returns>
 public static PushbackQueue <Obj> NewPushbackQueue(GetObj getObj, TokWrap tokWrap)
 {
     return(new PushbackQueue <Obj>(getObj, tokWrap));
 }