Changes since the ANTLR book?

44 views
Skip to first unread message

Ross Patterson

unread,
Aug 4, 2022, 4:01:21 AM8/4/22
to antlr-discussion
Is there a list of changes since the ANTLR book was published?  I know 4.10 just added the caseinsensitive grammar option, and I've recently learned about using $parser in semantic predicates, but I'm guessing there are probably more.

Ross

Terence Parr

unread,
Aug 5, 2022, 4:13:05 PM8/5/22
to antlr-di...@googlegroups.com
You will be surprised but I in fact have a list. I think I proposed something to the publisher I don't know I don't have time:

* added a profiler interface and profiler GUI in intellij plug-in
add small chapter in part three on advanced topics… I probably would not have time to do something really involved.

* we slightly altered ANTLRErrorStrategy interface.
small change probably just in the API chapter

* changed syntax for <assoc=right>
small change wherever I reference that syntax

* added channels{} syntax
this is technically not released yet but we could do a release as part of the book update. alter 15.5 and 15.2

* tweak discussion of how we do left recursion illumination
Alter chapter 14; alter the rules and 14.1 and alter the generated output in 14.2

* Added XPath
alter chapter 7 on decoupling actions from the grammar to include small section on using xpath to find nodes in a parse tree. small example. Add brief notes to chapter 2 big picture to reference this section.

* Added interpreters for lexer and parser
Add a section in chapter 13 on the API

* we added C# and python2, 3  support.

* [minor] $e cannot be used to reference the enclosing rule e. Must use $ctx

* Lexer actions can appear anywhere, not just at the end
 alter 15.5

On Aug 4, 2022, at 1:01 AM, Ross Patterson <ross.pa...@gmail.com> wrote:

Is there a list of changes since the ANTLR book was published?  I know 4.10 just added the caseinsensitive grammar option, and I've recently learned about using $parser in semantic predicates, but I'm guessing there are probably more.

Ross

--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/895ddc9b-d03c-4c41-b8ac-467735913cden%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages