| 286 | 286 | mClosingSingleQuotes.add( lex2 ); |
| 287 | 287 | } |
| 288 | else if( lex1.isType( DASH ) && |
|
| 289 | lex2.isType( QUOTE_SINGLE ) && |
|
| 290 | lex3.isType( QUOTE_DOUBLE ) ) { |
|
| 291 | // Example: ---'" |
|
| 292 | consumer.accept( new Token( QUOTE_CLOSING_SINGLE, lex2 ) ); |
|
| 293 | mClosingSingleQuotes.add( lex2 ); |
|
| 294 | } |
|
| 288 | 295 | else if( lex2.isType( QUOTE_SINGLE, QUOTE_DOUBLE ) ) { |
| 289 | 296 | // After tokenizing, the parser will attempt to resolve ambiguities. |
| 260 | 260 | “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.” |
| 261 | 261 | |
| 262 | Computer says, "'It is mysteries---'" |
|
| 263 | Computer says, “‘It is mysteries---’” |
|
| 264 | ||
| 262 | 265 | # ######################################################################## |
| 263 | 266 | # Ambiguous (no solution) |