문제

Is there a way to turn a Maude expression into a string?

I'm looking for the equivalent of Haskell's show.

도움이 되었습니까?

해결책

There's no really clean solution. You could convert the expression into a metaterm, metaPrettyPrint it, convert the resulting Qids to strings and concatenate them, but you would still need to deal with lexical issues, such as where to insert spaces.

(From the Maude mailing list)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top