This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import argparse | |
from math import floor | |
import xml.etree.ElementTree as ET | |
# Parse Arguments | |
arg_parser = argparse.ArgumentParser() | |
arg_parser.add_argument("--input", type=str, help="Input XML file", required=True, | |
dest="input_xml") | |
arg_parser.add_argument("--output", type=str, help="Output .txt filename", required=True, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pickle | |
import sys | |
""" | |
|------------------------------------------------------| | |
|Grammar notation | Code representation | | |
|------------------|-----------------------------------| | |
|Terminal | Code to match and consume a token| | |
|Nonterminal | Call to that rule’s function | | |
| | | If or switch statement | |
NewerOlder