Update parser.c
Change handling of global variables