Created
April 7, 2014 14:23
-
-
Save ibizaman/10021239 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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