Package avrora.core.isdl.parser

Examples of avrora.core.isdl.parser.Token


     * @param h the high bit of the range of bits being assigned
     * @param e an expression that represents the right hand side of the assignment
     */
    public VarBitRangeAssignStmt(String m, int l, int h, Expr e) {
        super(e);
        variable = new Token();
        variable.image = m;
        low_bit = l < h ? l : h;
        high_bit = l > h ? l : h;
    }
View Full Code Here


     * @param b the expression representing the bit expr into the element
     * @param e the expression representing the right hand side of the assignment
     */
    public MapBitAssignStmt(String m, Expr i, Expr b, Expr e) {
        super(e);
        mapname = new Token();
        mapname.image = m;
        index = i;
        bit = b;
    }
View Full Code Here

        public final String varname;
        public final Token token;

        ArrayMap(String v) {
            varname = v;
            token = new Token();
            token.image = varname;
        }
View Full Code Here

            printer.print(")");
        }

        public void generateBitRangeWrite(Expr ind, int l, int h, Expr val) {
            if (ind.isVariable() || ind.isLiteral()) {
                Token t = new Token();
                t.image = ind.toString();
                String var = getVariable(t);
                if (var == null) var = ind.toString();
                printer.print(getVariable(token) + '[' + var + "] = ");
                int mask = Arithmetic.getBitRangeMask(l, h);
View Full Code Here

         * to the original token.
         *
         * @param v the token representing the value of this integer
         */
        public IntExpr(int v) {
            super(new Token());
            value = v;
        }
View Full Code Here

         * to the original token
         *
         * @param b the value of this boolean
         */
        public BoolExpr(boolean b) {
            super(new Token());
            value = b;
        }
View Full Code Here

     * @param n the name of the local as a string
     * @param t the type of the local as a token
     * @param i a reference to the expression evaluated to give the local an initial value
     */
    public DeclStmt(String n, Token t, Expr i) {
        name = new Token();
        name.image = n;
        type = t;
        init = i;
    }
View Full Code Here

     * @param n the name of the local as a string
     * @param t the type of the local as a token
     * @param i a reference to the expression evaluated to give the local an initial value
     */
    public DeclStmt(String n, String t, Expr i) {
        name = new Token();
        name.image = n;
        type = new Token();
        type.image = t;
        init = i;
    }
View Full Code Here

     * @param n the string name of the variable as a token
     * @param e the expression representing the right hand side of the assignment
     */
    public VarAssignStmt(String n, Expr e) {
        super(e);
        variable = new Token();
        variable.image = n;
    }
View Full Code Here

     * @param b an expression representing the expr of the bit
     * @param e an expression representing the right hand side of the assignment
     */
    public VarBitAssignStmt(String m, Expr b, Expr e) {
        super(e);
        variable = new Token();
        variable.image = m;
        bit = b;
    }
View Full Code Here

TOP

Related Classes of avrora.core.isdl.parser.Token

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.