New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request , add period to the operator stoppers #1297
Comments
It is clear that UWN downvotes this feature request, because Why stop half way, and implement living standard Prolog only 50%. the strategy of the living standard half way. |
Scryer implements ISO syntax in which |
I don't have the ISO standard on my Hard Disk right now, have a new And why would By "what" Scryer Prolog implements, I am not refering to what |
BTW: Living standard Prolog is probably the correct name to address
Scryer Prolog also fails this living standard Prolog test:
|
Tau Prolog should be stricter in such cases so that we can also use it to reliably detect portable syntax, there is an existing issue for this: tau-prolog/tau-prolog#286 |
I don't think Tau Prolog should change anything. It will break TPTP Syntax, like here: Cannot consult file So its not a bug. The ISO core standard is inflexible. Its better to implement You have to publish a legacy to ISO converter on your Scryer Prolog website, can use legacy Prolog texts directly. This is a plus and thumbs up for TauProlog that it doesn't follow such inflexibility. |
Ok I found a way to convert legacy Prolog text into Scryer Prolog
SWI-Prolog puts an additional parenthesis around operators, even
The SWI-Prolog output seems to have sufficient quality so that
Thanks to this automatic conversion, I am now willingly to test more |
Contrary to what I expected, Scryer Prolog already implements
a stopper strategy for operators. For example I get on
-b rebis-dev
:The latest input line is accepted. I do not have to write
foo((+),(-),(-))
.I guess this works because prefix parsing stops before comma
','
and right parenthesis
')'
? Not sure how Scryer Prolog implements.In my opinion prefix parsing should also stop before the period
'.'
.So that we can read TPTP Syntax directly from within Scryer Prolog.
Currently it doesn't work as expected:
This is related to this ticket:
#1289
The text was updated successfully, but these errors were encountered: