We will ease into the second part of this series (see Hacking BeanShell with JavaCC - Building a Language, Part 1) with a relatively simple task: implementing a "<>" equivalence operator. This operator calls .equals on its operands and handles nulls on either side. The first step is adding the operator to the JJTree grammar. We will also add a not equivalent… Continue
A few months ago Clifton Royston posted an excellent entry titled Recursive descent parsing with BNF grammars. This inspired me to write about JavaCC, my favorite parser generator. Today I finally got around to putting together some examples. Academic articles on parser generators and… Continue