meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
new_syntax_summary [2020/09/26 23:43] – [New "up to here" syntax] revusky | new_syntax_summary [2023/04/10 10:04] (current) – revusky | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Overview of the Newer Streamlined Syntax ====== | ====== Overview of the Newer Streamlined Syntax ====== | ||
- | The following is a summary of the newer streamlined syntax that was recently [[https://javacc.com/2020/07/ | + | The following is a summary of CongoCC' |
- | + | from legacy JavaCC. Note that, unlike CongoCC' | |
- | I anticipate that there will soon be a utility available that automatically converts the legacy syntax to the streamlined syntax. | + | |
Line 37: | Line 36: | ||
</ | </ | ||
- | you can now write: | + | you would now write: |
< | < | ||
Line 43: | Line 42: | ||
</ | </ | ||
- | ===== A list of lexical specifications, | + | ===== A list of lexical specifications, |
In this case, they are written with no opening '' | In this case, they are written with no opening '' | ||
Line 60: | Line 59: | ||
</ | </ | ||
- | the newer, preferable | + | the newer syntax is: |
< | < | ||
Line 74: | Line 73: | ||
</ | </ | ||
- | This is considered | + | This was deemedd to be preferable, not because it saves much space (it doesn' |
===== The Options at the top of a file do not need to be in any sort of block. ===== | ===== The Options at the top of a file do not need to be in any sort of block. ===== | ||
Line 87: | Line 86: | ||
</ | </ | ||
- | You can now simply put: | + | You now simply put: |
< | < | ||
Line 140: | Line 139: | ||
===== New SCAN construct which replaces LOOKAHEAD ===== | ===== New SCAN construct which replaces LOOKAHEAD ===== | ||
- | The new '' | + | The new '' |
===== New "up to here" syntax ===== | ===== New "up to here" syntax ===== |