mark structures with their fixity
This commit is contained in:
@@ -115,7 +115,7 @@ fn get_builtins() -> Code {
|
||||
trust!(10),
|
||||
try_me_else!(4),
|
||||
fact![get_constant!(Constant::from("!"), temp_v!(1)),
|
||||
get_structure!(String::from(","), 2, temp_v!(2)),
|
||||
get_structure!(String::from(","), 2, temp_v!(2), Some(infix!())),
|
||||
unify_variable!(temp_v!(1)),
|
||||
unify_variable!(temp_v!(2))],
|
||||
set_cp!(temp_v!(3)),
|
||||
@@ -132,7 +132,7 @@ fn get_builtins() -> Code {
|
||||
execute_n!(1),
|
||||
retry_me_else!(8),
|
||||
allocate!(3),
|
||||
fact![get_structure!(String::from(","), 2, temp_v!(2)),
|
||||
fact![get_structure!(String::from(","), 2, temp_v!(2), Some(infix!())),
|
||||
unify_variable!(perm_v!(2)),
|
||||
unify_variable!(perm_v!(1)),
|
||||
get_var_in_fact!(perm_v!(3), 3)],
|
||||
@@ -167,12 +167,12 @@ fn get_builtins() -> Code {
|
||||
indexed_try!(3),
|
||||
trust!(5),
|
||||
try_me_else!(3),
|
||||
fact![get_structure!(String::from("->"), 2, temp_v!(1)),
|
||||
fact![get_structure!(String::from("->"), 2, temp_v!(1), Some(infix!())),
|
||||
unify_variable!(temp_v!(1)),
|
||||
unify_variable!(temp_v!(2))],
|
||||
goto!(139, 3),
|
||||
trust_me!(),
|
||||
fact![get_structure!(String::from("->"), 2, temp_v!(1)),
|
||||
fact![get_structure!(String::from("->"), 2, temp_v!(1), Some(infix!())),
|
||||
unify_void!(2)],
|
||||
query![put_value!(temp_v!(2), 1)],
|
||||
neck_cut!(),
|
||||
@@ -234,7 +234,8 @@ fn get_builtins() -> Code {
|
||||
put_structure!(Level::Shallow,
|
||||
String::from("type_error"),
|
||||
1,
|
||||
temp_v!(1)),
|
||||
temp_v!(1),
|
||||
None),
|
||||
set_constant!(Constant::Atom(rc_atom!("integer_expected")))],
|
||||
goto!(59, 1), // goto throw/1.
|
||||
try_me_else!(5), // arg_/3, 173.
|
||||
|
||||
Reference in New Issue
Block a user