LogicalContracts / LogicalEnglish

Apache License 2.0
25 stars 6 forks source link

Add checks for wasm support #34

Closed LyzardKing closed 6 months ago

LyzardKing commented 6 months ago

This adds if checks to the prolog code to load certain libraries only if running locally (or on swish). The web assembly version of swi-prolog does not have support for pengines and some http libraries, and they are not strictly necessary for the LE execution.

This PR should still be tested to ensure it doesn't break swish (it shouldn't) or if it works successfully with scasp (it doesn't).