Пример #1
0
 private void Init(CompilerFrontEnd cfe, ScopeMode scope)
 {
     Stage = Stages.Init;
     Cfe   = cfe;
     Scope = scope;
     Steps = new Dictionary <Stages, Tuple <Func <Boolean>, Func <float> > >();
     Steps.Add(Stages.Init, new Tuple <Func <bool>, Func <float> >(OnInit, InitProg));
     Steps.Add(Stages.Tokening, new Tuple <Func <bool>, Func <float> >(OnTokenStep, TokenProg));
     Steps.Add(Stages.Syntaxing, new Tuple <Func <bool>, Func <float> >(OnSyntaxStep, SyntaxProg));
     Fs = null;
 }
Пример #2
0
 public SyntaxBuilder(CompilerFrontEnd cfe, StreamReader stream, ScopeMode scope = ScopeMode.Module)
 {
     Init(cfe, scope);
     Fs = stream;
 }
Пример #3
0
 public SyntaxBuilder(CompilerFrontEnd cfe, String path, ScopeMode scope = ScopeMode.Module)
 {
     Init(cfe, scope);
     FileName = path;
 }