#!/usr/bin/python

import pprint, re
from pyparsing import Literal

comments, isComment = list(), 0
for line in file('src/CTL/ConnectHandler.java'):
	if re.match(r'.*?/\*\*', line):
		curComment = ''
		isComment = 1
	if isComment:
		if isComment == 2:
			isComment = 0
			comments.append((curComment, line))
		else:
			curComment += line
	if re.match(r'.*?\*/', line):
		isComment = 2

#pprint.pprint(comments)

# Grammar for the comments

# Grammar for the code snippets
qualifier = Literal('public') | Literal('protected') | Literal('private')

