Args:
        fname (str): Name of the grammar file to be parsed
    Return:
        list: The grammar rules

def _read_file(fname):
    """
    Args:
        fname (str): Name of the grammar file to be parsed
    Return:
        list: The grammar rules
    """
    with open(fname) as input_file:
        re_grammar = [x.strip('\n') for x in input_file.readlines()]
    return re_grammar