In this paper, the solution of limit problems, which is an important subject of high school and university mathematics is presented by using JavaCC code generation tool and symbolic computation methods. Although JavaCC is generally used for generating programming language interpreters, in a similar way it can also be used in the evaluation of mathematical expressions. In this work, first the general grammar rules of limit expressions is extracted. Then parser code for the limit expressions is generated with JavaCC according to the grammar rules. Using the list of the tokens into which a limit expression is parsed with this code, an Abstract Syntax Tree (AST) is constructed. Finally, the solution is obtained by interpreting the AST with a class of Visitor Design Pattern. The study can be regarded as a promising contribution to computer assisted education.