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

16.13. Summary

Imperative languages tell a computer what to do, giving the computer a script or program of operations to follow. If you need an imperative language, Java may be the best answer. Java is far more powerful than any language in this book, and it is easy to overestimate the complexity of learning Java. A good rule of thumb is this: If your users will spend more than 300 hours developing expertise in a language, perhaps the language for them to learn is Java. On the other hand, for many applications a smaller and more easily learned language will fit nicely.

When you create a new imperative language, a good strategy is to have your parser create a composite command that represents your user's program. This approach separates the parsing ...

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