All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lt.compiler.util.Consts Maven / Gradle / Ivy

Go to download

The latte-lang compiler project, which contains compiler and runtime required library.

The newest version!
package lt.compiler.util;

/**
 * the flags
 */
public class Consts {
        public static final int IS_POINTER_SET = 1; // 0001
        public static final int IS_POINTER_GET = 2; // 0010
        public static final int IS_POINTER_NEW = 4; // 0100

        public static final String AST_FIELD = "_LATTE$AST";
        public static final String GENERIC_NAME_SPLIT = "_$G$_";

        private Consts() {
        }

        public static boolean flagMatch(int field, int flag) {
                return (field & flag) == flag;
        }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy