简体   繁体   中英

Equivalent of Coq's `Eval` for Agda

Coq has an Eval command that you can use to have the type-checker evaluate an expression and print it to the console. Is there an equivalent to this in Agda? In particular, I'd like to avoid actually compiling and executing the program. I just want to introspect a value to make sure my code is working (and help me understand it better) before I go to the effort of writing proofs.

It's fine if the solution involves agda-mode (as compared to Coq, where it's part of the language).

我找到了一个解决方案: Ctrl-C Ctrl-N in agda-mode 允许输入表达式,然后打印评估结果。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM