ufal / perl-pmltq

Query engine and query language for trees in PML format
3 stars 2 forks source link

Wrong query parsing in BtredEvaluator #1

Closed m1ch4ls closed 9 years ago

m1ch4ls commented 10 years ago
t-node $n := 
[ quot/set_id != '', (!is_generated = 1 or (a/aux.rf $a and is_generated = 1)), a/lex.rf|a/aux.rf a-node $a := [ ] ];
>> give distinct $n.quot/set_id,$a.id
>> for $1 give $1,count($2) sort by $2 desc,$1

ERROR OUTPUT:

Syntax error at line 3: Invalid selector: Was expecting ']' but found "a/lex.rf|a/aux.rf a-node $a := [ ] ];" instead
Syntax error at line 3: Invalid toplevel selector: Was expecting selector but found "t-node $n := " instead
Syntax error at line 3: Invalid selectors: Was expecting toplevel selector but found "# quote-set mnozina pokryvajici nejvetsi pocet a-uzlu" instead
Syntax error at line 3: Invalid pmltq query: Was expecting selectors at /home/matyas/Documents/UFAL/PMLTQ/REP/pmltq-core/t/../lib/PMLTQ/Common.pm line 957.
m1ch4ls commented 9 years ago

This should be already fixed - the issue is caused by a/lex.rf|a/aux.rf not being loaded correctly.

m1ch4ls commented 9 years ago

Fixed by new user-defined relation loading system