Exemplo n.º 1
0
 public Compiler()
 {
     InjectedContext = new Context();
     DeclarationConverter.BuildContext(
         InjectedContext,
         new IntrinsicDict {
         U64Type.Get(),
         NumberLiteralType.Get(),
         PrintIntrinsic.Get(),
         SimpleMathIntrinsic <ulong, UlongMath> .Get()
     });
 }
Exemplo n.º 2
0
        static IContext BuildTestContext()
        {
            var context = new Context();

            DeclarationConverter.BuildContext(
                context,
                new IntrinsicDict {
                U64Type.Get(),
                NumberLiteralType.Get(),
                SimpleMathIntrinsic <ulong, UlongMath> .Get()
            });
            return(context);
        }