Exemple #1
0
        // (n -- flag)
        private int ZeroNotEqualsAction()
        {
            _interpreter.StackExpect(1);

            _interpreter.Function((a) => (a != 0) ? -1 : 0);

            return(1);
        }
Exemple #2
0
        // (n1 n2 -- n3)
        private int SlashAction()
        {
            _interpreter.StackExpect(2);

            _interpreter.Function((n1, n2) => n1 / n2);

            return(1);
        }