Esempio n. 1
0
        public override int VisitValueNumber(YarnSpinnerParser.ValueNumberContext context)
        {
            float number = float.Parse(context.BODY_NUMBER().GetText());
            compiler.Emit(ByteCode.PushNumber, number);

            return 0;
        }
Esempio n. 2
0
        public override int VisitValueNumber(YarnSpinnerParser.ValueNumberContext context)
        {
            float number = float.Parse(context.BODY_NUMBER().GetText(), CultureInfo.InvariantCulture);

            compiler.Emit(OpCode.PushFloat, new Operand(number));

            return(0);
        }