Add some convenience functions for parsing myrial programs
Convert unit tests to use myrial_parser functions