Skip to content

Instantly share code, notes, and snippets.

@ibizaman
Created April 7, 2014 14:23
Show Gist options
  • Select an option

  • Save ibizaman/10021239 to your computer and use it in GitHub Desktop.

Select an option

Save ibizaman/10021239 to your computer and use it in GitHub Desktop.
import baron
def test_file(path):
with open(path, 'r') as f:
content = f.read()
valid = content == baron.dumps(baron.parse(content))
print(path,' is valid? ',valid)
def main():
test_file('baron-master/baron2/parser.py')
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment