This paper presents an enhanced parser for the Sudaan statistical software that expands its capabilities to handle more complex mathematical and logical expressions. The new parser utilizes a combination of a traditional LALR(1) parser and noncanonical parsing techniques, including a shunting-yard algorithm, to efficiently manage user-defined functions and complex syntax. Key improvements maintain the existing syntax for current users while allowing for greater flexibility in parsing subsequent expressions with user-defined variables.