Exemple #1
0
 public Lexer(string text, Session session, DiagnosticCollection diagnostics)
 {
     _text         = text;
     _lexerSession = session;
     _tokens       = new List <Token> ();
     _diagnostics  = diagnostics;
 }
Exemple #2
0
 public CodeGenerator(SemanticAnalyser semanticAnalyser, DiagnosticCollection diagnostics, Session session)
 {
     SemanticAnalyser = semanticAnalyser;
     Diagnostics      = diagnostics;
     CurrentSession   = session;
     StaticTemp       = new TempTable();
     JumpTable        = new JumpTable();
     Image            = new RuntimeImage();
 }
Exemple #3
0
 public void AddMultiple(DiagnosticCollection diagnostics)
 {
     _diagnostics.AddRange(diagnostics._diagnostics);
     DisplayDiagnostics();
 }
Exemple #4
0
 public Session()
 {
     Diagnostics = new DiagnosticCollection();
     debugMode   = true;
     setupMode   = false;
 }
 public SymbolTable(DiagnosticCollection diagnostics)
 {
     Diagnostics = diagnostics;
 }