Package pspdash.data.compiler

Examples of pspdash.data.compiler.CompiledScript


      }

      /** Process a new style declaration. */
      public void caseANewStyleDeclaration(ANewStyleDeclaration node) {
        String name = Compiler.trimDelim(node.getIdentifier());
        CompiledScript script = null;
        try {
          script = Compiler.compile(node.getValue());
        } catch (CompilationException ce) {
          throw new LoadingException
            (new InvalidDatafileFormat(ce.getMessage()));
        }
        if (!script.isConstant())
          putVal(name, script);
        else {
          SimpleData constant = script.getConstant();
          if (constant != null &&
              node.getAssignop() instanceof AReadOnlyAssignop)
            constant = (SimpleData) constant.getEditable(false);
          putVal(name, constant);
        }
View Full Code Here


        this.tag = tag;
    }

    public SearchFunction buildFor(String name, DataRepository data,
                                   String prefix) {
        CompiledScript script = null;
        if (expression != null) try {
            // normalize "unvarying" references - that is,
            // references marked with braces like [{this}]
            PValue expr = (PValue) expression.clone();
            expr.apply(new NormalizeReferences(data, prefix));
View Full Code Here

TOP

Related Classes of pspdash.data.compiler.CompiledScript

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.