Examples of Expression


Examples of ru.vassaev.core.Expression

                    continue;
                  if (!n_e.getNodeName().equals("e"))
                    continue;
                  Element e_e = (Element) n_e;
                  String tp = Strings.getXMLValue(e_e, "#type");
                  Expression ex = new Expression(e_e.getTextContent(), prefix);
                  Iterator<String> prs = ex.getParams();
                  if ("ordinal".equals(tp)) {
                    while (prs.hasNext()) {
                      String nmpr = prs.next();
                      String xFld = nmpr
                          + ((suffix == null) ? "" : (prefix + suffix));
                      ex.setValue(nmpr, "\"" + xFld + "\"");
                      o.flds.add(xFld);
                    }
                  } else {
                    while (prs.hasNext()) {
                      String nmpr = prs.next();
                      ex.setValue(nmpr, "\"" + nmpr + "\"");
                      o.flds.add(nmpr);
                    }
                  }
                  or.add(ex.toString());
                }
              }
            }
            loadParams(o.cntx.prms, e);
          } else if (nm.equals("else")) {
View Full Code Here

Examples of semestralka.Expression

    }
   
    @Override
    public void actionPerformed(ActionEvent e) {
        AutomatConstructor a = new AutomatConstructor();
        Expression ex = new Expression(caller.input.getText(),true);
        if(ex.isValid()){
            caller.app.setAutomat(a.Construct(ex));
            caller.log.add(a.getLog());
            caller.log.repaint();
            caller.setCanvasImage(caller.app.generateGraphFile());
        }
View Full Code Here

Examples of st.gravel.support.compiler.ast.Expression

      return newInstance;
    }

    public Expression parseExpression_(final String _aString) {
      final Parser _parser;
      final Expression _res;
      _parser = this.source_(_aString);
      _res = _parser.parseExpression();
      st.gravel.support.jvm.ObjectExtensions.assert_(this, _parser.atEnd());
      return _res;
    }
View Full Code Here

Examples of stanfordlogic.prover.Expression

    public void testGroundProofWithRule()
    {
        GdlList succs = parser_.parse("(succ 1 2)");
        addFacts(succs);
       
        Expression conjunct = GroundFact.fromList( parser_.parse("succ 1 2") );
        Implication rule = new Implication( GroundFact.fromList(parser_.parse("gt 2 1")), conjunct);
       
        ArrayList<Implication> rules = new ArrayList<Implication>();
        rules.add(rule);
       
View Full Code Here

Examples of steal.Expression

      break;
    }
  }

  private void analyzeRepeat(Repeat repeat, int minMatches) {
    Expression stop = null;
    if (repeat.getParent() instanceof Sequence) {
      Sequence s = (Sequence) repeat.getParent();
      if (s.getCurrent() == repeat) {
        stop = s.getNext();
      }
View Full Code Here

Examples of steal.examples.expression.model.Expression

 
  public static void main(String[] args) {
    Factory f=new FactoryImpl();
   
    Expr expr=new Expr(f);
    Expression e=expr.expression();
   
    Main.get().m();
   
    new Printer().scan(e);
View Full Code Here

Examples of supervision.Expression

    ActorSystem system = ActorSystem.create("calculator-system");
    ActorRef calculatorService =
      system.actorOf(Props.create(ArithmeticService.class), "arithmetic-service");

    // (3 + 5) / (2 * (1 + 1))
    Expression task = new Divide(
      new Add(new Const(3), new Const(5)),
      new Multiply(
        new Const(2),
        new Add(new Const(1), new Const(1))
      )
View Full Code Here

Examples of tools.Expression

        instr = instr.trim();
        if (instr.matches("^\\s*calc\\s+[\\x00-\\xff]*$") || instr.equals("calc")) {
          Pattern pattern = Pattern.compile("^\\s*calc\\s+([\\x00-\\xff]*)$");
          Matcher matcher = pattern.matcher(instr);
          if (matcher.find()) {
            Expression e = new Expression(varCollection,matcher.group(1));
            wy.format("%s\n",e.calculate());
            varCollection=e.getVarCollection();
          }
          else  
            throw new ExceptionRPN("calc needs expression");
        }
        else if (instr.matches("^\\s*clear\\s+[\\x00-\\xff]*$") || instr.equals("clear")) {
View Full Code Here

Examples of urban.kappa.Expression

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetLhs(Expression newLhs, NotificationChain msgs)
  {
    Expression oldLhs = lhs;
    lhs = newLhs;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, KappaPackage.RULE__LHS, oldLhs, newLhs);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of urban.urban.Expression

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetLhs(Expression newLhs, NotificationChain msgs)
  {
    Expression oldLhs = lhs;
    lhs = newLhs;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UrbanPackage.RULE__LHS, oldLhs, newLhs);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.