mirror of
https://github.com/aykhans/AzSuicideDataVisualization.git
synced 2025-04-22 10:28:02 +00:00
20 lines
312 B
Python
20 lines
312 B
Python
import json
|
|
import sys
|
|
|
|
from . import compile_to_code
|
|
|
|
|
|
def main():
|
|
if len(sys.argv) == 2:
|
|
definition = sys.argv[1]
|
|
else:
|
|
definition = sys.stdin.read()
|
|
|
|
definition = json.loads(definition)
|
|
code = compile_to_code(definition)
|
|
print(code)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|