示例#1
0
文件: TypeVisitor.cs 项目: Ryuuke/Ryu
        public override void Visit(NumberAST number)
        {
            var numberType = new TypeAST
            {
                TypeName = number.ExplicitType != string.Empty ?
                           number.ExplicitType :
                           Enum.GetName(typeof(Keyword), Keyword.S32).ToLower()
            };

            _stateInfo.currentType = numberType;
        }
示例#2
0
 public override void Visit(NumberAST number)
 {
     _currentValue = LLVM.ConstInt(LLVM.Int32Type(), (ulong)number.Value, false);
 }
示例#3
0
 public virtual void Visit(NumberAST number)
 {
 }