text: # This is a python script for adding package information
  # To modify syntax rule, you must:
  # 1. modify XMLParser.g4
  # 2. Execute `antlr4 XMLParser.g4`
  # 3. Run this script
  
  # import os
  # os.chdir('./src/main/java/mastery.translator/java')
  
  # import subprocess
  # subprocess.run(['antlr4', 'XMLParser.g4'], stdout=subprocess.PIPE)
  
  names = ["XMLParser.java", "XMLParserBaseListener.java", "XMLParserListener.java"]
  for filename in names:
      with open(filename, 'r') as f:
          content = f.read()
      with open(filename, 'w') as f:
          f.write('package mastery.translator.xml;\n\n')
          f.write(content)