In many cases it will not be possible to determine lexicographical scope of functions or variables.