# eval

**URL:** <https://forum.kx.com/t/eval/7397>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [November 8, 2011, 1:25pm UTC](https://forum.kx.com/t/eval/7397 "2011-11-08T13:25:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AE1](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@AE1](https://forum.kx.com/u/AE1)\
**Post date:** [November 8, 2011, 1:25pm UTC](https://forum.kx.com/t/eval/7397/1 "2011-11-08T13:25:00Z")

</div>

Hello,Are there eval in K3 and K4? eval "2+2"4I suppose it is possible to make it via ..d, but I am sure there is abetter solution.-- Regards,? Alexander.

---

<div class="post-metadata">

**Author:** ![Aaron\_Davies](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@Aaron\_Davies](https://forum.kx.com/u/Aaron_Davies)\
**Post date:** [November 8, 2011, 10:36pm UTC](https://forum.kx.com/t/eval/7397/2 "2011-11-08T22:36:00Z")

</div>

On Nov 8, 8:25?am, Alexander Epifanov \<inv2…\> wrote:\> ? eval “2+2”\> 4k4: ."2+2"4q:q)get"2+2"4eval in q means to execute a parse tree:k4: -6!(+;2;2)4q:q)eval(+;2;2)4\</inv2…\>

---

<div class="post-metadata">

**Author:** ![AE1](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@AE1](https://forum.kx.com/u/AE1)\
**Post date:** [November 8, 2011, 10:55pm UTC](https://forum.kx.com/t/eval/7397/3 "2011-11-08T22:55:00Z")

</div>

Is it possible to run parser or how to check if string has correct syntax?  
.“{/}”  
parse error
