File: Thread.grammar

package info (click to toggle)
libmail-imapclient-perl 3.31-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,516 kB
  • sloc: perl: 20,436; makefile: 23
file content (18 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Atoms:

NUMBER: /\d+/

# Rules:

threadmember:	NUMBER    { $return = $item{NUMBER} ; }	|
		thread 	  { $return = $item{thread} ; } 

thread:	"(" threadmember(s) ")"
	{
		$return = $item{'threadmember(s)'}||undef;	
	}

# Start:
start: /^\* THREAD /i thread(s?) {
	$return=$item{'thread(s?)'}||undef;
}