parser: add Lua function to change an option

Did this because it was simple, and I had the urge to get parser to over 1000 lines.