Remove ruby dependency from mantests

This commit is contained in:
William Langford committed 2019-02-22 19:32:31 -05:00
1 parent 5989388c9c
commit 03f746bf24
2 files changed
+14 -1

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env python3
import yaml
with open("content/manual/manual.yml") as f:
manual = yaml.load(f)
for section in manual.get('sections', []):
for entry in section.get('entries', []):
for example in entry.get('examples', []):
print(example.get('program', '').replace('\n', ' '))
print(example.get('input', ''))
for s in example.get('output', []):
print(s)
print('')