import re


def ignore(line):
	"""
	Describes JSGF lines which do not contain any terminals
	and which should thus be ignored.
	"""
	comment = re.compile('^//')
	name = re.compile('^grammar ')
	decl = re.compile('^#JSGF')
	return re.match(comment, line) or re.match(name, line) or re.match(decl, line)