Package wyvern.tools.errors

Examples of wyvern.tools.errors.FileLocation


          continue;

        VarDeclaration vd = (VarDeclaration) d;
        String propName = vd.getName();
        Type type = vd.getType();
        FileLocation line = vd.getLocation();


        newEnv = newEnv.extend(new NameBindingImpl(propName, type));
        newEnv = newEnv.extend(
            new NameBindingImpl(
                "set" + propName.substring(0,1).toUpperCase() + propName.substring(1),
                new Arrow(type, Unit.getInstance())));
      } else if (d instanceof ValDeclaration) {
        if (((ValDeclaration) d).isClassMember() != useClassMembers)
          continue;

        ValDeclaration vd = (ValDeclaration) d;
        String propName = vd.getName();
        Type type = vd.getType();
        FileLocation line = vd.getLocation();

        DefDeclaration getter = new DefDeclaration(propName, type,
            new LinkedList<NameBinding>(), null, false, line);

        newEnv = getter.extend(newEnv, newEnv);
View Full Code Here


        "\tpushToken((Terminals)(((JavaObj)((TupleValue)v).getValue(0)).getObj()), ((StringConstant)((TupleValue)v).getValue(1)).getValue());\n" +
        "\treturn UnitVal.getInstance(FileLocation.UNKNOWN);\n" +
        "});\n" +
        "terminals = Util.javaToWyvDecl("+javaClassName+".Terminals.class).getClassObj();");

    FileLocation unkLoc = FileLocation.UNKNOWN;


    ParserCompilerParameters pcp = new ParserCompilerParameters();

    ByteArrayOutputStream target = new ByteArrayOutputStream();
View Full Code Here

TOP

Related Classes of wyvern.tools.errors.FileLocation

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.