source: proto/s2k/trunk/framework/src/toolchain/s2k/lang/paramBuiltin/S2KParamBuiltinsTranslator.java @ 4021

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

Restructure s2k package.

File size: 853 bytes
Line 
1package toolchain.s2k.lang.paramBuiltin;
2
3import java.util.List;
4import b2k.ast.*;
5
6import toolchain.s2k.transformer.visitors.S2K2B2K.Context;
7
8// S2K to B2K builtins translations.
9
10public enum S2KParamBuiltinsTranslator {
11   
12        IDENTITY_TRANSLATION { 
13            @SuppressWarnings("unused")
14                public ASTNode translate(S2KParamBuiltins builtin, s2k.ast.FuncCallNode node, Context context, List<ASTNode> args) {
15                assert false : "No S2K to B2K translation required for : " + this.name();
16                return null;
17            }           
18        },
19       
20        NULL_TRANSLATION {     
21            @SuppressWarnings("unused")
22                public ASTNode translate(S2KParamBuiltins builtin, s2k.ast.FuncCallNode node, Context context, List<ASTNode> args) {
23                assert false : "S2K to B2K translation not implemented for : " + this.name();
24                return null;
25            }           
26        };
27   
28}
Note: See TracBrowser for help on using the repository browser.