コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 public EnumEvaluator(CConstantEvaluator ceval)
 {
     this.value = 0;
     this.ceval = ceval;
 }