imapsync/Mail-IMAPClient-2.2.9/Thread/Thread.grammar_old
Nick Bebout 9ca0e338a4 1.284
2011-03-12 02:44:47 +00:00

19 lines
293 B
Text

# Atoms:
NUMBER: /\d+/
# Rules:
threadmember: NUMBER { $return = $item{NUMBER} ; } |
thread { $return = $item{thread} ; }
thread: "(" threadmember(s) ")"
{
$return = $item{threadmember}||undef;
}
# Start:
start: /^\* THREAD /i thread(s?) {
$return=$item{thread}||undef;
}