]> Repositorios git - scryer-prolog.git/commitdiff
change from xsi to iso in bimetatrans, correct atomic/1 failure (#343)
authorMark Thom <[email protected]>
Tue, 14 Apr 2020 06:40:51 +0000 (00:40 -0600)
committerMark Thom <[email protected]>
Tue, 14 Apr 2020 06:40:51 +0000 (00:40 -0600)
src/prolog/examples/bimetatrans_ruleml.pl
src/prolog/machine/machine_state_impl.rs

index 5ff1e207c2ac2d44c649383f3f7a5eab28bc87b6..d742d25b7beac2c2d25544163d014d86b732b84c 100644 (file)
@@ -790,7 +790,7 @@ constant_chars(symbol, Constant, Chars) :-
 
 /*
  * ruleml_data//1 delegates to ruleml_data_contents//2 to determine
- * the contents of <Data> nodes, with adjoining xsi:type elements.
+ * the contents of <Data> nodes, with adjoining iso:type elements.
  *
  * constant_chars/3 performs type-driven conversion between
  * Prolog/'$V' and RuleML/XML in both directions;
@@ -800,13 +800,13 @@ constant_chars(symbol, Constant, Chars) :-
 
 ruleml_data(Name) -->
     (  { var(Name) } ->
-       list_ws("<Data xsi:type=\""),
+       list_ws("<Data iso:type=\""),
        prolog_symbol(Type),
        list_ws("\">"),
        ruleml_data_contents(Type, Cs),
        { constant_chars(Type, Name, Cs) },
        list_ws("</Data>")
-    ;  "<Data xsi:type=\"",
+    ;  "<Data iso:type=\"",
        { constant_chars(Type, Name, Cs) },
        prolog_symbol(Type),
        "\">",
index 52d4e757ded74b4f56fef9787519d52ea05aec24..941fa4cbac4c314e82fe5ec488adb74885f53ae9 100644 (file)
@@ -2400,7 +2400,13 @@ impl MachineState {
                 let d = self.store(self.deref(self[r1]));
 
                 match d {
-                    Addr::Con(_) => self.p += 1,
+                    Addr::Char(_) |
+                    Addr::CharCode(_) |
+                    Addr::Con(_) |
+                    Addr::EmptyList |
+                    Addr::Fixnum(_) |
+                    Addr::Float(_) |
+                    Addr::Usize(_) => self.p += 1,
                     _ => self.fail = true,
                 };
             }