TriplyDB / Yasgui

Yet Another Sparql GUI
https://yasgui.triply.cc
MIT License
178 stars 54 forks source link

Error building the grammar/tokenizer-table #206

Closed smeckler closed 1 year ago

smeckler commented 1 year ago

Hi,

I would like my YASQE component to only support/allow a subset of the SPARQL grammar. My plan was to change the Prolog grammar (sparql11-grammar.pl) based on my EBNF rules. Then I could re-run the grammar build script to create a new JavaScript tokenizer table (_tokenizer-table.js).

Unfortunately, the grammar build script fails even without any changes. swipl -s util/gen_sparql11.pl -t go

I am using swipl version 8.4 on Ubuntu. SWI-Prolog version 8.4.3 for x86_64-linux

This is the error message:

ERROR: assertz/1: Type error: `callable' expected, found `[]' (an empty_list)
   Exception: (9) *'or([baseDecl,prefixDecl])'===>_5748 ?

What could I do to solve this problem?

Edit 2023-04-05:

Version 9.0 of swipl throws this error: SWI-Prolog version 9.0.4 for x86_64-linux

ERROR: assertz/1: Type error: `callable' expected, found `[]' (an empty_list)
   Exception: (9) ?(baseDecl)===>_7474 ? Exception details
        Exception term: error(type_error(callable,[]),context(system:assertz/1,_7602))
smeckler commented 1 year ago

It works with SWI-Prolog version 8.0.3 .