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 ...

Get Building Parsers with Java™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.