I need some algorithm suggestion for parsing brackets (only scope) from source code.
Input
function name(bool) { < 20 if (bool) { < 33