meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
choice_points [2020/10/02 08:32] – revusky | choice_points [2020/10/08 12:17] – revusky | ||
---|---|---|---|
Line 104: | Line 104: | ||
Now, to be clear, looking ahead one token might be sufficient or not in any given spot, but if we don't specify any extra information, | Now, to be clear, looking ahead one token might be sufficient or not in any given spot, but if we don't specify any extra information, | ||
- | //We enter an expansion at a choice point if the next token is in that expansion' | + | //We enter an expansion at a choice point if the next token is in that expansion' |
- | Again, no need to be intimidated by the lingo. An expansion' | + | Again, no need to be intimidated by the lingo. An expansion' |
- | //If the next token is **not** in an expansion' | + | //If the next token is **not** in an expansion' |
Now, regardless, it may be the case that more than one of the expansions at a given choice point matches this condition. Well, in that case, we have a secondary rule: //the first one gets it//. And this is really no different, by the way, from how if-elseif-else in a procedural programming language works. | Now, regardless, it may be the case that more than one of the expansions at a given choice point matches this condition. Well, in that case, we have a secondary rule: //the first one gets it//. And this is really no different, by the way, from how if-elseif-else in a procedural programming language works. |