O'Reilly logo

Building Parsers with Java™ by Steven John Metsker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

13.3. A Logikus Interactive Development Environment

The Logikus interactive development environment (IDE) lets you experiment with logic programming. You can launch the environment by running the LogikusIde class:

> java sjm.examples.logic.LogikusIde 

The LogikusIde class launches a Swing-based user interface that provides a programming area, a query area, and an area for results. When the IDE comes up, you can enter the program and query shown in Figure 13.1. If you do not want to type in the data, you can find the file starred.txt on the CD and copy and paste its contents into the program area. (This file actually lists 68 of James Cagney's films, four of which appear in Figure 13.1.)

Figure 13.1. The Logikus interactive development environment. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required