lib/Mail/IMAPClient/Thread.grammar
raw| 1 | # Atoms: |
| 2 | |
| 3 | NUMBER: /\d+/ |
| 4 | |
| 5 | # Rules: |
| 6 | |
| 7 | threadmember: NUMBER { $return = $item{NUMBER} ; } | |
| 8 | thread { $return = $item{thread} ; } |
| 9 | |
| 10 | thread: "(" threadmember(s) ")" |
| 11 | { |
| 12 | $return = $item{'threadmember(s)'}||undef; |
| 13 | } |
| 14 | |
| 15 | # Start: |
| 16 | start: /^\* THREAD /i thread(s?) { |
| 17 | $return=$item{'thread(s?)'}||undef; |
| 18 | } |