File: Thread.grammar

package info (click to toggle)
libmail-imapclient-perl 3.25-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,420 kB
  • ctags: 302
  • sloc: perl: 19,967; makefile: 11
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;
}