Barnard-PL-Labs / tsltools

Library and tools for the TSL specification format
Other
7 stars 4 forks source link

Add` --predicates` flag for `tslmt2tsl` #27

Closed wonhyukchoi closed 2 years ago

wonhyukchoi commented 2 years ago

Still need to handle proper implementation of Show.

E.g. if we have a function

h x y (f a b) z (g a b)

It is currently output as

h x y f a b z g a b

Which is less than ideal.

May need to incur building a separate AST data structure, because everything is curried for a TSL.Logic.FunctionTerm. For instance, a simple example of the form

f x y

is parsed as

FApplied (FApplied (FunctionSymbol f) Signal x) Signal y