shithub: pprolog

Download patch

ref: 660d7d81eb1adcc2b108d0b150e3439972b1ec0a
parent: 95f874fe29b84394748d660a536a516277184288
author: Peter Mikkelsen <[email protected]>
date: Wed Jul 7 11:01:04 EDT 2021

Add missing pre defined operators from iso prolog

--- a/parser.c
+++ b/parser.c
@@ -390,8 +390,20 @@
 	addoperator(700,  Xfx, L"=..");
 	addoperator(600,  Xfy, L":");
 	addoperator(500,  Yfx, L"+");
+	addoperator(500,  Yfx, L"-");
+	addoperator(500,  Yfx, L"/\\");
+	addoperator(500,  Yfx, L"\\/");
 	addoperator(400,  Yfx, L"*");
 	addoperator(400,  Yfx, L"/");
+	addoperator(400,  Yfx, L"//");
+	addoperator(400,  Yfx, L"rem");
+	addoperator(400,  Yfx, L"mod");
+	addoperator(400,  Yfx, L"<<");
+	addoperator(400,  Yfx, L">>");
+	addoperator(200,  Xfx, L"**");
+	addoperator(200,  Xfy, L"^");
+	addoperator(200,  Fy,  L"-");
+	addoperator(200,  Fy,  L"\\");
 }
 
 void