devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Devicemap Wiki] Trivial Update of "Patterns2" by rezan
Date Sat, 10 Jan 2015 15:05:43 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Devicemap Wiki" for change notification.

The "Patterns2" page has been changed by rezan:
https://wiki.apache.org/devicemap/Patterns2?action=diff&rev1=8&rev2=9

  The following rank types are defined:
  
   Strong::
+  :: Strong patterns are ranked higher than Weak and None. The Rank``Value is ignored and
they are ranked by their position in the pattern stream. Specifically, the last pattern token
position making the pattern successful. The lower the position, the higher the rank. When
a Strong pattern is found, the pattern matching step can stop and this pattern can be returned
without analyzing the rest of the stream. This is because its impossible for another pattern
to rank higher.
-  :: Strong patterns are ranked higher than Weak and None. The Rank``Value is ignored and
they are ranked by their position in the pattern stream.
- Specifically, the last pattern token position making the pattern successful.
- The lower the position, the higher the rank. When a Strong pattern is found, the pattern
matching step can stop and this pattern can be returned without analyzing the rest of the
stream. This is because its impossible for another pattern to rank higher.
  
   Weak::
   :: Weak patterns are ranked below Strong but above None. A Weak pattern can only be returned
in the absence of a Strong pattern. Weak patterns always rank higher than None patterns, regardless
of their Rank``Value. The Rank``Value is used to rank between successfully matched Weak patterns.

Mime
View raw message