Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5985005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:27:53+00:00 2026-05-22T22:27:53+00:00

I am working on a Java application which does some reasoning on basic terms

  • 0

I am working on a Java application which does some reasoning on basic terms of a language, trivially implemented as Composites (they are all internally generated, not parsed from text). Now I am in the need of applying a set of rewrite rules to the term language, an issue which is becoming really annoying to do by hand. After some research I found that Tom and possibly Stratego/XT may be alternatives to add term rewriting abilities to Java. Does anyone have some experience on them to suggest me which are the advantages and disadvantages of both? Does anyone know about any alternative? Given the size of the software the ability to rewrite terms implemented as POJO data structures is a requisite (I am close to a deadline and I do not want to replace the current term representation with another one, although I likely will in the future).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:27:54+00:00Added an answer on May 22, 2026 at 10:27 pm

    Also exists termware: http://redmine.gradsoft.ua/projects/show/termware

    Does not sure, that this is exactly what you want, but it can handle any java object in rule, i.e.

    domain(examples,
      system(Invoicing,default,
             ruleset(
               # import general operations.
               import(general),
    
               # handle new invoice and set one to paid if possible.
               @class("ua.gradsoft.termwaredemos.invoicing.Invoice", $invoice)
                            [ ! $invoice.isPayed()
                               &&
                                $invoice.getCustomer().getAccountBalance() - $invoice.getAmount() + $invoice.getCustomer().getCreditLimit() > 0
                            ]
                              -> true
                                 [ $invoice.getCustomer().decrementAccount($invoice.getAmount())
                                   &&
                                   $invoice.setPayed(true) ],
    
               # set credit limit in depend from summary payments.
               @class("ua.gradsoft.termwaredemos.invoicing.Customer", $customer)
                            [ $customer.getAccountBalance() > 0 && $customer.getSummaryPayments() > 2000 ] -> true [ $customer.setCreditLimit(500) ]
    
             ),
             FirstTop)
    );
    
    

    Also you can =look at jess side.
    http://www.jessrules.com/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a web application in Java which gets data from servlets
I'm working on a cross platform application in Java which currently works nicely on
I'm working on a Java application which should allow users to optimize their daily
I was working on a project which includes developing an application using java sockets.
I'm working on a java web-application, trying to be xml-friendly and writing my jsp
I am working with a large Java web application from a commercial vendor. I've
I'm working on a java SE 1.5+ swing application, in conjunction with others. I'm
I'm working on a Java application that uses JavaSpace. We're developing this in Eclipse.
I have an application in java swing which runs in the system tray most
Sir, i am working in a java application.On that application i have to access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.