PPYAMLGrammar doesn’t parse single-quoted scalars
In the following, the last example returns a PPFailure:
PPYAMLGrammar parse: 'foo'. "⇒ 'foo'"
PPYAMLGrammar parse: '"foo"'. "⇒ 'foo'"
PPYAMLGrammar parse: '''foo'''. "⇒ a PPFailure"
I would expect the last example to also return 'foo'. See section ‘7.3.2. Single-Quoted Style’ in the YAML specification v1.2.2 or section ‘4.6.8. Single Quoted’ in the older v1.0 specification.
Note that the following example does not return a PPFailure; it returns #('one' 'two') rather than #('one' 'two' 'three' 'four' 'five') as I would expect:
PPYAMLGrammar parse: '
- "one"
- two
- ''three''
- four
- "five"
'
When writing the previous comment, I didn’t know about PPEndOfInputParser yet. Replacing PPYAMLGrammar by PPYAMLGrammar new end makes the example return a PPFailure instead of #('one' 'two'). Suggestion: making the class method #parse: use PPEndOfInputParser might better match novice expectations.