}
public boolean checkSyntax(Expression element, RutaCheckerProblemFactory problemFactory,
IProblemReporter rep) throws RecognitionException {
if (element instanceof RutaFunction) {
RutaFunction f = (RutaFunction) element;
String name = f.getName();
if (!name.equals(strings[0])) {
IProblem problem = problemFactory.createUnknownFunctionProblem(f);
rep.reportProblem(problem);
return false;
}
boolean ok = true;
List<Expression> childs = f.getChilds();
if(childs.size() != 1) {
IProblem problem = problemFactory.createWrongNumberOfArgumentsProblem(name, element, 1);
rep.reportProblem(problem);
ok = false;
}