__license__ = "GNU GPL"
import cgi, sys
-from parsimonious import ParseError
+from lark import ParseError
from html.response import redirect, response
from parser import parser
else:
q = form['q'].value
try:
- tree = parser.compile(q)
+ tree = parser.parse(q)
except ParseError:
status = "400 Bad request"
title = "Error!"