source: proto/pabloj/trunk/src/compilers/pabloB/lang/carrySet/CarrySetBuiltins.java @ 2988

Last change on this file since 2988 was 2988, checked in by ksherdy, 5 years ago

Added carry getter/setter for implementation consistency.

File size: 583 bytes
Line 
1/*
2 * Carry set builtin function signatures.
3 *
4 * TODO - Migrate to 'function signature style' to support type checking.
5 *
6 * @author Ken Herdy <ksherdy at sfu dot ca>
7 *
8 */
9
10package compilers.pabloB.lang.carrySet;
11
12public enum CarrySetBuiltins {
13        CARRYDECLARE(3),               
14        CARRYRANGE(2),
15        GETCARRY(1),
16        SETCARRY(2),
17        PENDING64(1),
18        CARRYCOMBINE(3),
19        CARRYADJUST(2),
20        CARRYFLIP(2),
21        CARRYDEQUEUEENQUEUE(2);
22        //VALUEOF(1);
23                       
24        private final int argCount;
25               
26        CarrySetBuiltins(int argCount ) {
27                this.argCount = argCount;
28        }
29       
30        public int argCount() {
31                return this.argCount;
32        }
33}
34       
35
Note: See TracBrowser for help on using the repository browser.