public NamedDataTypeExtractor(IEnumerable <DeclSpec> specs, SymbolTable converter) { this.specs = specs; this.symbolTable = converter; this.callingConvention = CTokenType.None; this.eval = new CConstantEvaluator(converter.Constants); this.simpleSize = SimpleSize.None; foreach (var declspec in specs) { dt = declspec.Accept(this); } }
public NamedDataTypeExtractor(IPlatform platform, IEnumerable <DeclSpec> specs, SymbolTable converter) { this.platform = platform ?? throw new ArgumentNullException("platform"); this.specs = specs; this.symbolTable = converter; this.callingConvention = CTokenType.None; this.eval = new CConstantEvaluator(platform, converter.Constants); this.basicType = CBasicType.None; foreach (var declspec in specs) { dt = declspec.Accept(this); } }
public EnumEvaluator(CConstantEvaluator ceval) { this.value = 0; this.ceval = ceval; }