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

14.5. Summary

Instruction on programming in Logikus (or any other logic language) could easily fill a semester course. It is striking, then, that the grammar for the language contains just 20 rules. The grammar rules translate to fewer than 250 Java statements in LogikusParser.java. Language development lets you make a small amount of code go a long way.

The difficulty of learning Logikus derives not from a complex grammar but rather from the fact that Logikus addresses concepts orthogonal to Java. Java emphasizes modeling through objects, whereas Logikus emphasizes modeling through relations, facts, and rules.

Businesses have become increasingly aware that the one aspect of development that they cannot address with frameworks or off-the-shelf ...

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