rankByLiteralLength object | parser.t[5980]

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[5982]`

first pass

TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3