Talk:Arithmetic evaluation: Difference between revisions

Why AST?
(→‎D solutions: Problems resolved. Thanks Badmadevil!)
(Why AST?)
Line 19:
This task would be a perfect fit for the boost.spirit library. Is using such a library appropriate for this task? (Note that unlike parser generators like yacc, boost.spirit is a pure library solution, i.e. you don't use an external tool to generate C++ code, but you directly feed your source code to the C++ compiler). --[[User:Ce|Ce]] 10:39, 22 February 2008 (MST)
:If it's the right tool for the job, that's perfectly fine with me. --[[User:Short Circuit|Short Circuit]] 18:20, 22 February 2008 (MST)
 
== Why AST is required? ==
Why AST generation is put into the requirement? Clearly arithmetic expression interpretation with predefined types does not need AST. In fact, it is just wasting resources to use AST for that. So if AST is essential, then the task should rather be named like, parsing infix expression in order to generate AST. I.e. the output must be the AST, not the expression value. --[[User:Dmitry-kazakov|Dmitry-kazakov]] 19:39, 3 September 2008 (UTC)