1 /*
2     This file is part of GNU APL, a free implementation of the
3     ISO/IEC Standard 13751, "Programming Language APL, Extended"
4 
5     Copyright (C) 2008-2015  Dr. Jürgen Sauermann
6 
7     This program is free software: you can redistribute it and/or modify
8     it under the terms of the GNU General Public License as published by
9     the Free Software Foundation, either version 3 of the License, or
10     (at your option) any later version.
11 
12     This program is distributed in the hope that it will be useful,
13     but WITHOUT ANY WARRANTY; without even the implied warranty of
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15     GNU General Public License for more details.
16 
17     You should have received a copy of the GNU General Public License
18     along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 #include "Bif_OPER1_COMMUTE.hh"
22 
23 Bif_OPER1_COMMUTE   Bif_OPER1_COMMUTE::_fun;
24 Bif_OPER1_COMMUTE * Bif_OPER1_COMMUTE::fun = &Bif_OPER1_COMMUTE::_fun;
25 
26 //-----------------------------------------------------------------------------
27 Token
eval_LB(Token & LO,Value_P B)28 Bif_OPER1_COMMUTE::eval_LB(Token & LO, Value_P B)
29 {
30    return LO.get_function()->eval_AB(B, B);
31 }
32 //-----------------------------------------------------------------------------
33 Token
eval_LXB(Token & LO,Value_P X,Value_P B)34 Bif_OPER1_COMMUTE::eval_LXB(Token & LO, Value_P X, Value_P B)
35 {
36    return LO.get_function()->eval_AXB(B, X, B);
37 }
38 //-----------------------------------------------------------------------------
39 Token
eval_ALB(Value_P A,Token & LO,Value_P B)40 Bif_OPER1_COMMUTE::eval_ALB(Value_P A, Token & LO, Value_P B)
41 {
42    return LO.get_function()->eval_AB(B, A);
43 }
44 //-----------------------------------------------------------------------------
45 Token
eval_ALXB(Value_P A,Token & LO,Value_P X,Value_P B)46 Bif_OPER1_COMMUTE::eval_ALXB(Value_P A, Token & LO, Value_P X, Value_P B)
47 {
48    return LO.get_function()->eval_AXB(B, X, A);
49 }
50 //-----------------------------------------------------------------------------
51