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/25 17:11] – revusky | new_syntax_summary [2023/04/10 10:04] (current) – revusky | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | The following is a summary of the newer streamlined syntax that was recently | + | 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. In any case, there is no need to manually convert all of your code to the more streamlined syntax, since all the legacy syntax continues to work. Moreover, the two syntaxes can co-exist perfectly well in the same file. | ||
- | |||
- | This page does not describe the new '' | ||
===== Nonterminals ===== | ===== Nonterminals ===== | ||
Line 38: | Line 36: | ||
</ | </ | ||
- | you can now write: | + | you would now write: |
< | < | ||
Line 44: | 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 61: | Line 59: | ||
</ | </ | ||
- | the newer, preferable | + | the newer syntax is: |
< | < | ||
Line 75: | 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 88: | Line 86: | ||
</ | </ | ||
- | You can now simply put: | + | You now simply put: |
< | < | ||
Line 141: | Line 139: | ||
===== New SCAN construct which replaces LOOKAHEAD ===== | ===== New SCAN construct which replaces LOOKAHEAD ===== | ||
- | This is described separately | + | The new '' |
+ | |||
+ | ===== New "up to here" syntax ===== | ||
+ | |||
+ | The [[up to here]] syntax provides a way to specify [[choice points|lookahead]] in a much more clean, intuitive way. See [[up to here|here]] for more information. | ||