rankByLiteralLength object | parser.t[5967]

Command ranking by literal phrase length. We prefer interpretations that treat less text as uninterpreted literal text. By "less text," we simply mean that one has a shorter string treated as literal text than the other. (We prefer shorter literals because when the parser matches a string of literal text, it's essentially throwing up its hands and admitting it can't parse the text; so the less text is contained in literals, the more text the parser is actually parsing, and more parsed is better.)

`rankByLiteralLength : CommandRankingCriterion`

Superclass Tree (in declaration order)

`rankByLiteralLength`
`CommandRankingCriterion`
`object`

Summary of Properties

``

``

(none)

Summary of Methods

`comparePass1`

Inherited from `CommandRankingCriterion` :
`comparePass2`

Properties

(none)

Methods

`comparePass1 (a, b)`OVERRIDDEN | `parser.t[5969]`

first pass

TADS 3 Library Manual
Generated on 8/21/2012 from TADS version 3.1.2