Computation type demo grammar #53
guyemerson
started this conversation in
Team Posts
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've updated the demo grammar for my talk on the Turing completeness of unification. It now has:
prepend-list
, which is more efficient thanappend-list
, but appends the lists in the reverse orderThere are five LKB scripts:
script-pathological
loads the pathological type system where unification can fail to terminate (seepathological.tdl
)script-turing
loads the easier-to-understand implementation of Turing machines, with two example machines (seeturing.tdl
)script-twofeat-turing
loads the two-feature implementation of Turing machines, along with the same two example machines (seetwofeat.tdl
)script-lambda
loads the implementation of untyped lambda calculus (seelambda.tdl
)script-pseudoenglish
loads a Matrix-derived grammar which includes types for list operations (defined inmatrix.tdl
), Boolean logic and Peano arithmetic (defined incomputation.tdl
), as well as non-deterministic list operations (defined inpop.tdl
). It's a pseudo-English grammar, because the head-comp rule allows the elements to be taken off in any order, so that "I give the cat the dog" has two analyses, differing in the ARG2 and ARG3 of "give". The following operations are implemented:Beta Was this translation helpful? Give feedback.
All reactions