Tamper-resistant software has been studied as techniques to protect algorithm or secret data. There are many ways to realize
tamperresistant software including the method of making software hard to read. So far, no objective and quantitative method
is known for evaluating tamper-resistant software. Most of known evaluation methods require involvement of human being. That
means their evaluation results deeply depend on the skill and subjectivity of human. Therefore, it has been expected to devise
an objective and quantitative evaluation method in place of subjective evaluation methods. In this paper we propose a new
such method to measure how hard to read. The basic idea is to use the parse tree of a compiler for a programming language,
and evaluate depth and weights of the tree for a code. We give some experimental results to examine its effectiveness.