Exemple #1
0
        public bool VisitReturnStatement(ReturnStatement returnStatement)
        {
            //TODO: the overhead of using an exception to hack stack unwinding makes me cringe :/
            object value = returnStatement.Value?.Accept(this);

            LoxFunction.Return(value);
            return(true);
        }