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 | ||
up_to_here [2020/10/08 20:22] – revusky | up_to_here [2023/03/03 14:26] (current) – revusky | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== The " | ===== The " | ||
- | The // | + | The // |
Where in legacy JavaCC, you would write: | Where in legacy JavaCC, you would write: | ||
Line 9: | Line 9: | ||
</ | </ | ||
- | or in JavaCC 21 (//without up-to-here// | + | or in CongoCC |
< | < | ||
Line 53: | Line 53: | ||
</ | </ | ||
- | Now, if no '' | + | Now, if no '' |
The classic solution would be to specify two tokens of lookahead, so that we need to match " | The classic solution would be to specify two tokens of lookahead, so that we need to match " | ||
Line 61: | Line 61: | ||
</ | </ | ||
- | In JavaCC 21, you have the option of putting an // | + | In CongoCC, you have the option of putting an // |
< | < | ||
Line 67: | Line 67: | ||
</ | </ | ||
- | This means that we scan up to (and including) the " | + | This means that we scan up to (and including) the " |
Now, the choice construct above can be written simply as: | Now, the choice construct above can be written simply as: |