implement a light parser to extract variables from source code