Commit Graph

60 Commits

Author SHA1 Message Date
7d78db96d6 Add a useful helper function to the instantiation state
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-11-26 00:44:43 -08:00
b13cdea15d Add a few more convenient operations to Search.elm
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-11-26 00:44:24 -08:00
2cc1012a09 Add an initial 'lazy list' for doing backtracking
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-11-25 23:33:48 -08:00
ed34302627 Add a function to substitute all variables for their values 2023-11-25 23:19:36 -08:00
3269e37ef3 Add some convenience exports to Syntax.elm 2023-11-25 23:15:00 -08:00
f4fba66f8b Add instantiating terms of metavariables with variables
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-11-25 23:08:21 -08:00
824b19123e Fix a bug in unification (lol) 2023-11-25 23:08:05 -08:00
a9163c0797 Rename the 'Metavariable' type to 'UnificationVar'
'metavariable' is inaccurate.

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-11-25 22:53:08 -08:00
bfa9deb0b0 Implement a first draft of unification
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-11-25 22:51:53 -08:00
d0b88ee6df Initial commit
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2023-11-25 22:51:39 -08:00