Exemple #1
0
        /// <summary>
        /// Initialize the compiler
        /// </summary>
        private void Init()
        {
            Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;

              Lexer = new Lexer.Lexer();
              Parser = new Parser.Parser(this);
              Emitter = new Emitter.Emitter(this);

              Emitter.RegisterStdLib();
              Emitter.EmitInitialize();

              // reset specific class-bound properties
              SimulatePlannerNode.Exists = false;
              EmitNode.EmitterCount = 0;
        }
Exemple #2
0
 public ShortAssignNode(IdentifierNode node, Lexer.Lexem lexem)
 {
     Lvalue = node;
       Lexem = lexem;
 }