Esempio n. 1
0
        public CodeGenerator(SemanticModule module, SemanticContext semanticContext)
        {
            _module          = module;
            _semanticContext = semanticContext;

            _typeSizeManager = new ILTypeSizeManager(_structLayoutManager);
            _structLayoutManager.Setup(new StructLayoutGenerator(_typeSizeManager));
        }
Esempio n. 2
0
 public UnaryOperationCodeGenVisitor(FunctionBuilder builder, IExpressionVisitor expressionVisitor, SemanticModule semanticModule, ILTypeSizeManager typeSizeManager, FunctionStackLayout functionStackLayout, StructLayoutManager structLayoutManager)
 {
     _builder             = builder;
     _expressionVisitor   = expressionVisitor;
     _semanticModule      = semanticModule;
     _typeSizeManager     = typeSizeManager;
     _functionStackLayout = functionStackLayout;
     _structLayoutManager = structLayoutManager;
 }
Esempio n. 3
0
 public FunctionCodeGenVisitor(
     FunctionBuilder functionBuilder,
     FunctionStackLayout layout,
     FunctionManager functionManager,
     SemanticModule module,
     SemanticContext semanticContext,
     StructLayoutManager structLayoutManager,
     ILTypeSizeManager typeSizeManager,
     List <string> strings
     )
 {
     _functionBuilder     = functionBuilder;
     _layout              = layout;
     _functionManager     = functionManager;
     _module              = module;
     _semanticContext     = semanticContext;
     _structLayoutManager = structLayoutManager;
     _typeSizeManager     = typeSizeManager;
     _strings             = strings;
 }