meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
key_differences [2020/04/25 15:41] – revusky | key_differences [2020/12/12 23:28] – [JavaCC 21 is being actively developed] revusky | ||
---|---|---|---|
Line 16: | Line 16: | ||
JavaCC 21 introduces a new statement called **INJECT** that allows you to " | JavaCC 21 introduces a new statement called **INJECT** that allows you to " | ||
+ | |||
+ | ===== Streamlined Syntax ===== | ||
+ | |||
+ | JavaCC 21 incorporates an [[new syntax summary|alternative streamlined syntax]] that should be quite a bit more pleasant to write and easier to read. | ||
+ | |||
+ | The difference is frequently dramatic. Where the legacy tool required you to write things like: | ||
+ | |||
+ | < | ||
+ | LOOKAHEAD (Foo() Bar()) Foo() Bar() Baz() | ||
+ | </ | ||
+ | |||
+ | in JavaCC 21 you could express the above as: | ||
+ | |||
+ | < | ||
+ | Foo Bar =>|| Baz | ||
+ | </ | ||
+ | |||
+ | ===== More powerful lookahead ===== | ||
+ | |||
+ | Perhaps most importantly, | ||
+ | |||
+ | The '' | ||
+ | |||
+ | The new [[up to here]] construct should eliminate the need to write more verbose and error-prone numerical and syntactic lookahead constructs. | ||
+ | |||
+ | |||
+ | |||
===== JavaCC 21 is being actively developed ===== | ===== JavaCC 21 is being actively developed ===== | ||
- | JavaCC 21 now supports the full Java language up through Java 13. Since the [[Java.javacc|https:// | + | JavaCC 21 now supports the full Java language up through Java 15. Since the [[https:// |