| Author | Dave Jarvis <email> |
|---|---|
| Date | 2022-03-27 16:55:32 GMT-0700 |
| Commit | f7f2d2033918cf997a2fcbfa0b741dbbd113ddae |
| Parent | 2a3a402 |
| mClosingSingleQuotes.add( lex2 ); | ||
| } | ||
| + else if( lex1.isType( DASH ) && | ||
| + lex2.isType( QUOTE_SINGLE ) && | ||
| + lex3.isType( QUOTE_DOUBLE ) ) { | ||
| + // Example: ---'" | ||
| + consumer.accept( new Token( QUOTE_CLOSING_SINGLE, lex2 ) ); | ||
| + mClosingSingleQuotes.add( lex2 ); | ||
| + } | ||
| else if( lex2.isType( QUOTE_SINGLE, QUOTE_DOUBLE ) ) { | ||
| // After tokenizing, the parser will attempt to resolve ambiguities. |
| “Not much o' fellow-creaturs, I think, Miss; all I know—my old master, as war a knowin' man, used to say, says he, ‘If e'er I sow my wheat wi'out brinin', I'm a Dutchman,’ says he; an' that war as much as to say as a Dutchman war a fool, or next door. Nay, nay, I aren't goin' to bother mysen about Dutchmen. There's fools enoo, an' rogues enoo, wi'out lookin' i' books for 'em.” | ||
| +Computer says, "'It is mysteries---'" | ||
| +Computer says, “‘It is mysteries---’” | ||
| + | ||
| # ######################################################################## | ||
| # Ambiguous (no solution) |
| Delta | 10 lines added, 0 lines removed, 10-line increase |
|---|