Example #1
0
        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;
        }
Example #2
0
 public override void Visit(NumberAST number)
 {
     _currentValue = LLVM.ConstInt(LLVM.Int32Type(), (ulong)number.Value, false);
 }
Example #3
0
 public virtual void Visit(NumberAST number)
 {
 }