Read given code line by line, get each individual scope, determine by specifying the brackets and more