aboutsummaryrefslogtreecommitdiff
path: root/time2tex.py
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-09-05 14:41:50 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-09-05 14:41:50 +0200
commitc129df28338644c43b0a202ff71e1ff61107e765 (patch)
tree5ca578f2f28ab1bc16f934e1905f8c647da99797 /time2tex.py
parentce495dfbfd3eaecb84b3c536ad2176a7249d5b19 (diff)
WIP time2tex
Diffstat (limited to 'time2tex.py')
-rwxr-xr-xtime2tex.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/time2tex.py b/time2tex.py
new file mode 100755
index 0000000..3244b8f
--- /dev/null
+++ b/time2tex.py
@@ -0,0 +1,17 @@
+#!/bin/python3
+import sys
+
+
+if __name__ == "__main__":
+ if len(sys.argv) != 2:
+ print("usage: time2tex <input>")
+ exit(1)
+
+ input_file = sys.argv[1]
+ content = ""
+ with open(input_file, "r") as file:
+ content = file.read()
+ parsed = parse(content)
+
+
+